Fix type inpurt question duing Get-IcingaCheckCommandConfig

Fixes #89
This commit is contained in:
Lord Hepipud 2020-08-03 17:50:19 +02:00
parent 6963a7820b
commit 8798ad890d
2 changed files with 2 additions and 1 deletions

View file

@ -28,6 +28,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
* [#81](https://github.com/Icinga/icinga-powershell-framework/issues/81), [#82](https://github.com/Icinga/icinga-powershell-framework/issues/82) Fix error on EventLog initialising in case `Icinga for Windows` application is not registered on new machines * [#81](https://github.com/Icinga/icinga-powershell-framework/issues/81), [#82](https://github.com/Icinga/icinga-powershell-framework/issues/82) Fix error on EventLog initialising in case `Icinga for Windows` application is not registered on new machines
* [#84](https://github.com/Icinga/icinga-powershell-framework/issues/84), Fix conversion of `ConvertTo-Seconds` and `ConvertTo-SecondsFromIcingaThresholds` while the input value is `$null` * [#84](https://github.com/Icinga/icinga-powershell-framework/issues/84), Fix conversion of `ConvertTo-Seconds` and `ConvertTo-SecondsFromIcingaThresholds` while the input value is `$null`
* [#85](https://github.com/Icinga/icinga-powershell-framework/issues/85), Fix incorrect handling to empty service user password which was configured as empty `String` instead of `$null` `SecureString` object * [#85](https://github.com/Icinga/icinga-powershell-framework/issues/85), Fix incorrect handling to empty service user password which was configured as empty `String` instead of `$null` `SecureString` object
* [#89](https://github.com/Icinga/icinga-powershell-framework/issues/89), Fix file type question during `Get-IcingaCheckCommandConfig` generation in Windows 2012 R2 and older
## 1.1.2 (2020-07-01) ## 1.1.2 (2020-07-01)

View file

@ -310,7 +310,7 @@ function Get-IcingaCheckCommandConfig()
if ([string]::IsNullOrEmpty($OutDirectory) -eq $false) { if ([string]::IsNullOrEmpty($OutDirectory) -eq $false) {
$OutDirectory = (Join-Path -Path $OutDirectory -ChildPath $FileName); $OutDirectory = (Join-Path -Path $OutDirectory -ChildPath $FileName);
if ((Test-Path($OutDirectory)) -eq $false) { if ((Test-Path($OutDirectory)) -eq $false) {
New-Item -Path $OutDirectory -Force | Out-Null; New-Item -Path $OutDirectory -ItemType File -Force | Out-Null;
} }
if ((Test-Path($OutDirectory)) -eq $false) { if ((Test-Path($OutDirectory)) -eq $false) {