Skip to content

Commit

Permalink
Forgot to trim environments
Browse files Browse the repository at this point in the history
  • Loading branch information
BobJWalker committed Jan 4, 2022
1 parent 8d84ecc commit bb0f5b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ foreach ($space in $spacesList.Items)
if ($found -eq $false)
{
$environmentToAdd = @{
Name = $environmentToCheck
Name = $environmentToCheck.Trim()
}

$newEnvironment = Invoke-OctopusApi -OctopusUrl $octopusUrl -endPoint "environments" -spaceId $space.Id -apiKey $OctopusApiKey -item $environmentToAdd -method "POST"
Expand Down

0 comments on commit bb0f5b6

Please sign in to comment.