Skip to content

Commit 9a81ee2

Browse files
authored
Merge pull request #3262 from Azure/fix-stack-publish
[Hold]: Update module publishing script to
2 parents e4668f9 + 31f557c commit 9a81ee2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/UpdateModules.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ if ($scope -eq 'All' -or $scope -eq 'AzureRM') {
106106
Write-Host "Updated $module module"
107107
}
108108
}
109-
} elseif ($scope -eq 'AzureStack' -or $scope -eq 'All') {
109+
}
110+
if ($scope -eq 'AzureStack' -or $scope -eq 'All') {
110111
$modulePath = Join-Path $resourceManagerRootFolder "AzureRM.AzureStackAdmin"
111112
if (Test-Path $modulePath) {
112113
Write-Host "Updating AzureRM.AzureStackAdmin module from $modulePath"
@@ -123,7 +124,7 @@ if ($scope -eq 'All' -or $scope -eq 'AzureRM') {
123124
} else {
124125
Write-Error "Can not find module with name $scope to publish"
125126
}
126-
} elseif ($scope -ne 'AzureRM' -and $scope -ne 'AzureStack') {
127+
} elseif ($scope -ne 'AzureRM' -and $scope -ne 'ServiceManagement') {
127128
$modulePath = Join-Path $resourceManagerRootFolder "AzureRM.$scope"
128129
if (Test-Path $modulePath) {
129130
Write-Host "Updating $scope module from $modulePath"
@@ -142,7 +143,7 @@ if (($scope -eq 'All') -or ($scope -eq 'AzureRM')) {
142143
Write-Host "Updated Azure module"
143144
}
144145

145-
if ($scope -eq 'AzureStack') {
146+
if (($scope -eq 'AzureStack') -or ($scope -eq 'All')) {
146147
# Update AzureStack module
147148
$modulePath = "$PSScriptRoot\AzureStack"
148149
Write-Host "Updating AzureStack module from $modulePath"

0 commit comments

Comments
 (0)