From 3b315d9ab98f38605416ba21112610736273891b Mon Sep 17 00:00:00 2001 From: BobJWalker Date: Thu, 6 Jan 2022 10:10:23 -0600 Subject: [PATCH] More logging --- .../api-scripts/call-enforce-space-standards-runbook.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/octopus-samples-instances/api-scripts/call-enforce-space-standards-runbook.ps1 b/octopus-samples-instances/api-scripts/call-enforce-space-standards-runbook.ps1 index 684e684..276a5bf 100644 --- a/octopus-samples-instances/api-scripts/call-enforce-space-standards-runbook.ps1 +++ b/octopus-samples-instances/api-scripts/call-enforce-space-standards-runbook.ps1 @@ -81,5 +81,6 @@ $spacesList = Invoke-OctopusApi -OctopusUrl $octopusUrl -endPoint "spaces?skip=0 foreach ($space in $spacesList.Items) { Write-Host "Queueing a runbook run for $($space.Name) using the space id $($space.Id). The runbook will run on $AdminInstanceUrl for the environment $AdminEnvironmentName in the space $AdminSpaceName" - octo run-runbook --project "Standards" --runbook "Enforce Space Standards" --environment $AdminEnvironmentName --variable="Project.SpaceStandard.SpaceId:$($space.Id)" --server="$AdminInstanceUrl" --apiKey="$AdminInstanceApiKey" --space="$AdminSpaceName" + Write-Host "Running command: octo run-runbook --project ""Standards"" --runbook ""Enforce Space Standards"" --environment ""$AdminEnvironmentName"" --variable=""Project.SpaceStandard.SpaceId:$($space.Id)"" --server=""$AdminInstanceUrl"" --apiKey=""$AdminInstanceApiKey"" --space=""$AdminSpaceName"" to queue the runbook" + octo run-runbook --project "Standards" --runbook "Enforce Space Standards" --environment "$AdminEnvironmentName" --variable="Project.SpaceStandard.SpaceId:$($space.Id)" --server="$AdminInstanceUrl" --apiKey="$AdminInstanceApiKey" --space="$AdminSpaceName" } \ No newline at end of file