Skip to content

Commit

Permalink
Forgot to split on the csv
Browse files Browse the repository at this point in the history
  • Loading branch information
BobJWalker committed Dec 17, 2021
1 parent 8a9f99d commit dc94afb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dc94afb

Please sign in to comment.