mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Fixes check translation by converting non-numeric to string
This commit is contained in:
parent
00417e9392
commit
d314c71628
1 changed files with 2 additions and 0 deletions
|
|
@ -471,6 +471,8 @@ function New-IcingaCheck()
|
|||
|
||||
if ((Test-Numeric $checkValue)) {
|
||||
$checkValue = [int]$checkValue;
|
||||
} else {
|
||||
$checkValue = [string]$checkValue;
|
||||
}
|
||||
|
||||
if ($this.translation.ContainsKey($checkValue)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue