Skip to content

Commit

Permalink
Added PlanInstanceId and ActionInstanceId into possible handler subst…
Browse files Browse the repository at this point in the history
…itution variables.

Made InstanceId refer to PlanInstanceId instead of ActionInstanceId.
  • Loading branch information
Guy Waguespack committed Mar 27, 2017
1 parent d20257b commit 0bd4466
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ public static Dictionary<string, string> GatherVariables(HandlerRuntimeBase hand
{
Dictionary<string, string> vars = new Dictionary<string, string>();

vars.Add("INSTANCEID", startInfo.InstanceId.ToString());
vars.Add("INSTANCEID", startInfo.PlanInstanceId.ToString());
vars.Add("ACTIONINSTANCEID", startInfo.InstanceId.ToString());
vars.Add("PLANINSTANCEID", startInfo.PlanInstanceId.ToString());
vars.Add("ISDRYRUN", startInfo.IsDryRun.ToString());
String parentExitData = startInfo.ParentExitData?.ToString();
vars.Add("PARENTEXITDATA", HandlerUtils.Base64Encode(parentExitData));
Expand Down
2 changes: 1 addition & 1 deletion Synapse.Handler.CommandLine/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion( "0.1.0.0" ) ]
[assembly: AssemblyFileVersion( "0.1.17082.0" ) ]
[assembly: AssemblyFileVersion( "0.1.17086.0" ) ]
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Synapse.Core, Version=0.1.0.0, Culture=neutral, PublicKeyToken=a6de1cc56b73f982, processorArchitecture=MSIL">
<HintPath>..\packages\Synapse.Core.Signed.0.1.17069.0-alpha\lib\net45\Synapse.Core.dll</HintPath>
<HintPath>..\packages\Synapse.Core.Signed.0.1.17083.0-alpha\lib\net45\Synapse.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
Expand Down
2 changes: 1 addition & 1 deletion Synapse.Handler.CommandLine/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Synapse.Core.Signed" version="0.1.17069.0-alpha" targetFramework="net452" />
<package id="Synapse.Core.Signed" version="0.1.17083.0-alpha" targetFramework="net452" />
<package id="YamlDotNet.Signed" version="4.0.0" targetFramework="net452" />
</packages>

0 comments on commit 0bd4466

Please sign in to comment.