Skip to content

Commit 86481a9

Browse files
committed
Fix Set-AzureDeployment cmdlet
1 parent 29a6ac3 commit 86481a9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement/HostedServices/SetAzureDeployment.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,9 @@ public void ExecuteCommand()
193193

194194
ExtensionManager extensionMgr = new ExtensionManager(this, ServiceName);
195195

196-
foreach (var config in ExtensionConfiguration)
197-
{
198-
extConfig = (config.State == null)
199-
? extensionMgr.Add(currentDeployment, peerDeployment, ExtensionConfiguration, this.Slot)
200-
: extensionMgr.UpdateExtensionState(config);
201-
}
196+
extConfig = (ExtensionConfiguration[0].State == null)
197+
? extensionMgr.Add(currentDeployment, peerDeployment, ExtensionConfiguration, this.Slot)
198+
: extensionMgr.UpdateExtensionState(ExtensionConfiguration[0]);
202199
}
203200

204201
// Upgrade Parameter Set

0 commit comments

Comments
 (0)