Skip to content

Commit 6c6ca2d

Browse files
committed
made changes to fix nodeid/reportid issue
1 parent 024d42f commit 6c6ca2d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/ResourceManager/Automation/Commands.Automation/Commands.Automation.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
<HintPath>..\..\..\packages\Microsoft.Azure.Common.Authentication.1.4.0-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll</HintPath>
6464
<Private>True</Private>
6565
</Reference>
66-
<Reference Include="Microsoft.Azure.Management.Automation, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
66+
<Reference Include="Microsoft.Azure.Management.Automation, Version=0.9.0.0, Culture=neutral, processorArchitecture=MSIL">
6767
<SpecificVersion>False</SpecificVersion>
68-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Automation.0.50.2-prerelease\lib\portable-net45+wp8+wpa81+win\Microsoft.Azure.Management.Automation.dll</HintPath>
68+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Automation.2.0.0\lib\portable-net45+wp8+wpa81+win\Microsoft.Azure.Management.Automation.dll</HintPath>
6969
</Reference>
7070
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
7171
<SpecificVersion>False</SpecificVersion>

src/ResourceManager/Automation/Commands.Automation/Common/AutomationClientDSC.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ string nodeConfigurationName
750750
automationAccountName,
751751
new DscNodePatchParameters
752752
{
753-
Id = nodeId,
753+
NodeId = nodeId,
754754
NodeConfiguration = nodeConfiguration
755755
}).Node;
756756

src/ResourceManager/Automation/Commands.Automation/Model/DscNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public DscNode(string resourceGroupName, string automationAccountName, Automatio
3939
this.ResourceGroupName = resourceGroupName;
4040
this.AutomationAccountName = automationAccountName;
4141
this.Name = node.Name;
42-
this.Id = node.Id;
42+
this.Id = node.NodeId.ToString("D");
4343
this.IpAddress = node.Ip;
4444
this.LastSeen = node.LastSeen.ToLocalTime();
4545
this.RegistrationTime = node.RegistrationTime.ToLocalTime();

src/ResourceManager/Automation/Commands.Automation/Model/DscNodeReport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ public DscNodeReport(string resourceGroupName, string automationAccountName, str
3636
Requires.Argument("ResourceGroupName", resourceGroupName).NotNull();
3737
Requires.Argument("AutomationAccountName", automationAccountName).NotNull();
3838
Requires.Argument("dscNodeReport", dscNodeReport).NotNull();
39-
Requires.Argument("dscNodeReport", dscNodeReport.Id).NotNull();
39+
Requires.Argument("dscNodeReport", dscNodeReport.ReportId).NotNull();
4040

4141
this.ResourceGroupName = resourceGroupName;
4242
this.AutomationAccountName = automationAccountName;
4343
this.StartTime = dscNodeReport.StartTime;
4444
this.EndTime = dscNodeReport.EndTime;
4545
this.LastModifiedTime = dscNodeReport.LastModifiedTime;
4646
this.ReportType = dscNodeReport.Type;
47-
this.Id = dscNodeReport.Id.ToString("D");
47+
this.Id = dscNodeReport.ReportId.ToString("D");
4848
this.NodeId = nodeId;
4949
this.Status = dscNodeReport.Status;
5050
this.RefreshMode = dscNodeReport.RefreshMode;

0 commit comments

Comments
 (0)