Fixes check translation by converting non-numeric to string

This commit is contained in:
Lord Hepipud 2019-11-03 11:57:47 +01:00
parent 00417e9392
commit d314c71628

View file

@ -471,6 +471,8 @@ function New-IcingaCheck()
if ((Test-Numeric $checkValue)) { if ((Test-Numeric $checkValue)) {
$checkValue = [int]$checkValue; $checkValue = [int]$checkValue;
} else {
$checkValue = [string]$checkValue;
} }
if ($this.translation.ContainsKey($checkValue)) { if ($this.translation.ContainsKey($checkValue)) {