From 43e30af9236da1c6ae4252c4feaccfa71f4b9253 Mon Sep 17 00:00:00 2001 From: Abdelrahman Elogeel Date: Wed, 30 Sep 2015 16:23:27 -0700 Subject: [PATCH] Fixes for PublishedModules - Remove fake error thrown upon publishing AzureRM module - Include AzureRM module in All scope --- tools/PublishModules.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/PublishModules.ps1 b/tools/PublishModules.ps1 index ed09c5844e34..04dbf817b9a4 100644 --- a/tools/PublishModules.ps1 +++ b/tools/PublishModules.ps1 @@ -76,7 +76,7 @@ if (($scope -eq 'All') -or ($scope -eq 'AzureStorage')) { Publish-Module -Path $modulePath -NuGetApiKey $apiKey -Repository $repoName } -if ($scope -eq 'AzureRM') { +if (($scope -eq 'All') -or ($scope -eq 'AzureRM')) { # Publish AzureRM module $modulePath = "$PSScriptRoot\AzureRM" Write-Host "Publishing AzureRM module from $modulePath" @@ -96,7 +96,7 @@ if ($scope -eq 'All') { Write-Host "Published $module module" } } -} else { +} elseif ($scope -ne 'AzureRM') { $modulePath = Join-Path $resourceManagerRootFolder "AzureRM.$scope" if (Test-Path $modulePath) { Write-Host "Publishing $scope module from $modulePath"