Skip to content

Commit

Permalink
Used IsNullOrEmpty to support PS 2.0
Browse files Browse the repository at this point in the history
Replaced `IsNullOrWhitespace` with `IsNullOrEmpty` to properly support PowerShell 2.0. `IsNullOrWhitespace` was introduced in 3.0.
  • Loading branch information
Damovisa committed Jul 27, 2015
1 parent 305ce76 commit 3bcad93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions step-templates/hydra-update-octopus-tentacle.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"Name": "Hydra - Update Octopus Tentacle",
"Description": "Performs an automatic update for a 2.6 Tentacle to a 3.0 Tentacle.",
"ActionType": "Octopus.TentaclePackage",
"Version": 7,
"Version": 8,
"Properties": {
"Octopus.Action.Package.NuGetFeedId": "feeds-builtin",
"Octopus.Action.EnabledFeatures": "Octopus.Features.CustomScripts",
"Octopus.Action.Package.AutomaticallyRunConfigurationTransformationFiles": "False",
"Octopus.Action.Package.AutomaticallyUpdateAppSettingsAndConnectionStrings": "False",
"Octopus.Action.Package.DownloadOnTentacle": "False",
"Octopus.Action.Package.NuGetPackageId": "OctopusDeploy.Hydra",
"Octopus.Action.CustomScripts.PostDeploy.ps1": "if ([System.String]::IsNullOrWhitespace($ServerMapping)) {\n & .\\Hydra.exe --defer\n} else {\n $cleanServerMapping = $ServerMapping.Replace(\" \",\"\")\n & .\\Hydra.exe --defer --servers=$cleanServerMapping\n}\n"
"Octopus.Action.CustomScripts.PostDeploy.ps1": "if ([System.String]::IsNullOrEmpty($ServerMapping)) {\n & .\\Hydra.exe --defer\n} else {\n $cleanServerMapping = $ServerMapping.Replace(\" \",\"\")\n & .\\Hydra.exe --defer --servers=$cleanServerMapping\n}\n"
},
"SensitiveProperties": {},
"Parameters": [
Expand Down

0 comments on commit 3bcad93

Please sign in to comment.