Fixes wrong argument defaults set by Icinga Director Self-Service

Fixes #91
This commit is contained in:
Lord Hepipud 2020-08-03 19:21:55 +02:00
parent 6a36a8ba5e
commit 7d5986c504
2 changed files with 2 additions and 1 deletions

View file

@ -30,6 +30,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
* [#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 * [#89](https://github.com/Icinga/icinga-powershell-framework/issues/89), Fix file type question during `Get-IcingaCheckCommandConfig` generation in Windows 2012 R2 and older
* [#90](https://github.com/Icinga/icinga-powershell-framework/issues/90), Fix file type question during Icinga Agent installation on Windows 2012 R2 while using a custom installation target * [#90](https://github.com/Icinga/icinga-powershell-framework/issues/90), Fix file type question during Icinga Agent installation on Windows 2012 R2 while using a custom installation target
* [#91](https://github.com/Icinga/icinga-powershell-framework/issues/91), Fix wrong default values being set for installer arguments by using the Icinga Director Self-Service API
## 1.1.2 (2020-07-01) ## 1.1.2 (2020-07-01)

View file

@ -711,8 +711,8 @@ function Set-IcingaWizardArgument()
if ($DirectorArgs.Arguments.ContainsKey($WizardArg)) { if ($DirectorArgs.Arguments.ContainsKey($WizardArg)) {
$RetValue = $DirectorArgs.Arguments[$WizardArg]; $RetValue = $DirectorArgs.Arguments[$WizardArg];
} else { } else {
if ($null -ne $Value -Or [string]::IsNullOrEmpty($Value) -eq $FALSE) {
if ($null -ne $Value -And [string]::IsNullOrEmpty($Value) -eq $FALSE) {
$InstallerArguments = Add-InstallerArgument ` $InstallerArguments = Add-InstallerArgument `
-InstallerArguments $InstallerArguments ` -InstallerArguments $InstallerArguments `
-Key $WizardArg ` -Key $WizardArg `