OctopusDeploy / Library

| Public | A repository of step templates and other community-contributed extensions to Octopus Deploy
Other
171 stars 503 forks source link

Updating slack detailed template #1509

Closed twerthi closed 6 months ago

twerthi commented 6 months ago

Background

Customer reported that the -UseBasicParsing argument didn't exist on their version of PowerShell.

Results

Script now checks to see if the cmdlet has the argument before appending it to the argument list.

Before

Template would fail stating that the -UseBasicParsing doesn't exist for the cmdlet.

After

Template will now check to see if the cmdlet has that argument before trying to append it to the call.

Pre-requisites

Fixes #1508