File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ protected override void ProcessRecord()
43
43
44
44
private void ExecuteCommand ( )
45
45
{
46
+ extensionName = DscExtensionCmdletConstants . ExtensionPublishedName ;
47
+ publisherName = DscExtensionCmdletConstants . ExtensionPublishedNamespace ;
48
+
46
49
List < ResourceExtensionReference > extensionRefs = GetPredicateExtensionList ( ) ;
47
50
WriteObject (
48
51
extensionRefs == null ? null : extensionRefs . Select (
Original file line number Diff line number Diff line change 13
13
// ----------------------------------------------------------------------------------
14
14
15
15
using System . Management . Automation ;
16
+ using Microsoft . WindowsAzure . Commands . Common . Extensions . DSC ;
16
17
using Microsoft . WindowsAzure . Commands . ServiceManagement . IaaS . Extensions . DSC ;
17
18
using Microsoft . WindowsAzure . Commands . ServiceManagement . Model ;
18
19
using Microsoft . WindowsAzure . Commands . ServiceManagement . Properties ;
@@ -44,6 +45,9 @@ protected override void ProcessRecord()
44
45
}
45
46
private void ExecuteCommand ( )
46
47
{
48
+ extensionName = DscExtensionCmdletConstants . ExtensionPublishedName ;
49
+ publisherName = DscExtensionCmdletConstants . ExtensionPublishedNamespace ;
50
+
47
51
//this parameter needs to be true for remove to work
48
52
Uninstall = true ;
49
53
Version = DscExtensionCmdletCommonBase . DefaultExtensionVersion ;
Original file line number Diff line number Diff line change @@ -145,12 +145,6 @@ private class ConfigurationUris
145
145
public string ModulesUrl { get ; set ; }
146
146
}
147
147
148
- public SetAzureVMDscExtension ( )
149
- {
150
- this . extensionName = DscExtensionCmdletConstants . ExtensionPublishedName ;
151
- this . publisherName = DscExtensionCmdletConstants . ExtensionPublishedNamespace ;
152
- }
153
-
154
148
protected override void ProcessRecord ( )
155
149
{
156
150
base . ProcessRecord ( ) ;
@@ -159,6 +153,9 @@ protected override void ProcessRecord()
159
153
160
154
internal void ExecuteCommand ( )
161
155
{
156
+ extensionName = DscExtensionCmdletConstants . ExtensionPublishedName ;
157
+ publisherName = DscExtensionCmdletConstants . ExtensionPublishedNamespace ;
158
+
162
159
ValidateParameters ( ) ;
163
160
164
161
CreateConfiguration ( ) ;
You can’t perform that action at this time.
0 commit comments