Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
BobJWalker committed Nov 10, 2021
2 parents bf24b05 + 48539d5 commit 0ffb919
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Core/Util.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -659,13 +659,15 @@ function Test-OctopusScopeMatchParameter
$singleValueItem
)

$lowerParameterValue = $parameterValue.ToLower().Trim()


if ([string]::IsNullOrWhiteSpace($parameterValue))
{
return $defaultValue
}

$lowerParameterValue = $parameterValue.ToLower().Trim()


if ($singleValueItem)
{
if ($lowerParameterValue -ne "errorunlessexactmatch" -and $lowerParameterValue -ne "skipunlessexactmatch" -and $lowerParameterValue -ne "ignoremismatch")
Expand All @@ -684,4 +686,4 @@ function Test-OctopusScopeMatchParameter
}

return $parameterValue
}
}

0 comments on commit 0ffb919

Please sign in to comment.