mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes creation of default threshold values
This commit is contained in:
parent
80dada42f2
commit
8be9bf00a7
2 changed files with 2 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
|
|||
|
||||
* [#276](https://github.com/Icinga/icinga-powershell-framework/pull/276) Fixes check value conversion to decimal, which sometimes did not resolve values properly and caused conversion issues
|
||||
* [#282](https://github.com/Icinga/icinga-powershell-framework/issues/282) Fixes issue on `System.Text.StringBuilder` which fails to initialize properly on some older Windows systems
|
||||
* [#284](https://github.com/Icinga/icinga-powershell-framework/issues/284) Fixes exception while creating default threshold objects
|
||||
* [#285](https://github.com/Icinga/icinga-powershell-framework/issues/285) Fixes plain Icinga 2 conf generation for commands, which was caused by a new exception output for additional output
|
||||
|
||||
## 1.5.0 (2021-06-02)
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ function ConvertTo-Seconds()
|
|||
}
|
||||
}
|
||||
|
||||
if (-Not $hasUnit) {
|
||||
if (-Not $hasUnit -Or (Test-Numeric $NumberPart) -eq $FALSE) {
|
||||
return $Value;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue