Skip to content

Commit 2dfc6a0

Browse files
committed
Update Get azure DSC extension status to use base cmdlet to get deployment
1 parent a07c992 commit 2dfc6a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/GetAzureVMDscExtensionStatus.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public class GetAzureVmDscExtensionStatusCommand : IaaSDeploymentManagementCmdle
8383
protected const string GetStatusByServiceAndVmNameParamSet = "GetStatusByServiceAndVMName";
8484
protected const string GetStatusByVmParamSet = "GetStatusByVM";
8585

86-
internal string Service;
8786
internal string VmName;
8887

8988
/// <summary>
@@ -94,6 +93,7 @@ protected override void ExecuteCommand()
9493
{
9594
ServiceManagementProfile.Initialize();
9695
GetService(ServiceName, VM);
96+
9797
base.ExecuteCommand();
9898

9999
if (CurrentDeploymentNewSM == null)
@@ -118,7 +118,7 @@ internal void GetService(String serviceName, IPersistentVM vm)
118118
{
119119
if (!string.IsNullOrEmpty(serviceName))
120120
{
121-
Service = serviceName;
121+
this.ServiceName = serviceName;
122122
}
123123
else
124124
{
@@ -127,7 +127,7 @@ internal void GetService(String serviceName, IPersistentVM vm)
127127
if (vmRoleContext == null)
128128
return;
129129

130-
Service = vmRoleContext.ServiceName;
130+
this.ServiceName = vmRoleContext.ServiceName;
131131
VmName = vmRoleContext.Name;
132132
}
133133
}

0 commit comments

Comments
 (0)