Skip to content

Commit 613a85e

Browse files
fixing baseclass for SUCMR SUCR
1 parent eccfcfc commit 613a85e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateMachineRun.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
1717
using System;
1818
using Management.Automation.Models;
1919

20-
public class SoftwareUpdateMachineRun : BaseArmProperties
20+
public class SoftwareUpdateMachineRun : BaseProperties
2121
{
2222
internal SoftwareUpdateMachineRun(string resourceGroupName, string automationAccountName, SoftwareUpdateConfigurationMachineRun sucmr)
2323
{
2424
this.ResourceGroupName = resourceGroupName;
2525
this.AutomationAccountName = automationAccountName;
26-
this.CreatedBy = sucmr.CreatedBy;
2726
this.CreationTime = sucmr.CreationTime;
28-
this.LastModifiedBy = sucmr.LastModifiedBy;
2927
this.LastModifiedTime = sucmr.LastModifiedTime;
3028
this.MachineRunId = Guid.Parse(sucmr.Name);
3129
this.Name = sucmr.Name;

src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/SoftwareUpdateRun.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,17 @@ namespace Microsoft.Azure.Commands.Automation.Model.UpdateManagement
1818
using System.Xml;
1919
using Management.Automation.Models;
2020

21-
public class SoftwareUpdateRun : BaseArmProperties
21+
public class SoftwareUpdateRun : BaseProperties
2222
{
2323
internal SoftwareUpdateRun(string resourceGroupName, string automationAccountName, SoftwareUpdateConfigurationRun sucr)
2424
{
2525
this.ResourceGroupName = resourceGroupName;
2626
this.AutomationAccountName = automationAccountName;
2727
this.ComputerCount = sucr.ComputerCount.HasValue ? sucr.ComputerCount.Value : 0; // TODO: why do we have this nullable still?
2828
this.ConfiguredDuration = XmlConvert.ToTimeSpan(sucr.ConfiguredDuration);
29-
this.CreatedBy = sucr.CreatedBy;
3029
this.CreationTime = sucr.CreationTime;
3130
this.EndTime = sucr.EndTime;
3231
this.FailedCount = sucr.FailedCount.HasValue ? sucr.FailedCount.Value : 0;
33-
this.LastModifiedBy = sucr.LastModifiedBy;
3432
this.LastModifiedTime = sucr.LastModifiedTime;
3533
this.Name = sucr.Name;
3634
this.OperatingSystem = (OperatingSystemType)Enum.Parse(typeof(OperatingSystemType), sucr.OsType, true);

0 commit comments

Comments
 (0)