From dc94afb24704fec88b52e15be104f429fc92304f Mon Sep 17 00:00:00 2001 From: BobJWalker Date: Fri, 17 Dec 2021 16:13:16 -0600 Subject: [PATCH] Forgot to split on the csv --- .../api-scripts/enforce-base-environments.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octopus-samples-instances/api-scripts/enforce-base-environments.ps1 b/octopus-samples-instances/api-scripts/enforce-base-environments.ps1 index f44d74e..dca1172 100644 --- a/octopus-samples-instances/api-scripts/enforce-base-environments.ps1 +++ b/octopus-samples-instances/api-scripts/enforce-base-environments.ps1 @@ -75,7 +75,7 @@ function Invoke-OctopusApi } $spacesList = Invoke-OctopusApi -OctopusUrl $octopusUrl -endPoint "spaces?skip=0&take=1000" -spaceId $null -apiKey $OctopusApiKey -item $null -method "GET" -$environmentsToCheckList = $EnvironmentsCsv +$environmentsToCheckList = @($EnvironmentsCsv -split ",") foreach ($space in $spacesList.Items) { $environmentsList = Invoke-OctopusApi -OctopusUrl $octopusUrl -endPoint "environments?skip=0&take=1000" -spaceId $space.Id -apiKey $OctopusApiKey -item $null -method "GET"