From 3bcad9311e363f608fa1371b91fcb6ef08b17918 Mon Sep 17 00:00:00 2001 From: Damian Brady Date: Mon, 27 Jul 2015 13:11:26 +1000 Subject: [PATCH] Used `IsNullOrEmpty` to support PS 2.0 Replaced `IsNullOrWhitespace` with `IsNullOrEmpty` to properly support PowerShell 2.0. `IsNullOrWhitespace` was introduced in 3.0. --- step-templates/hydra-update-octopus-tentacle.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/step-templates/hydra-update-octopus-tentacle.json b/step-templates/hydra-update-octopus-tentacle.json index c6c010912..aee2de098 100644 --- a/step-templates/hydra-update-octopus-tentacle.json +++ b/step-templates/hydra-update-octopus-tentacle.json @@ -3,7 +3,7 @@ "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", @@ -11,7 +11,7 @@ "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": [