mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-03 20:29:32 -05:00
Fixes wrong comparison of hostname fetch handler
This commit is contained in:
parent
cc7f8dfe2c
commit
1a2e104558
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ function Start-IcingaAgentInstallWizard()
|
|||
}
|
||||
}
|
||||
|
||||
if ([string]::IsNullOrEmpty($Hostname) -And $AutoUseFQDN -eq $FALSE -And $AutoUseHostname -eq $FALSE) {
|
||||
if ([string]::IsNullOrEmpty($Hostname) -And $null -eq $AutoUseFQDN -And $null -eq $AutoUseHostname) {
|
||||
if ((Get-IcingaAgentInstallerAnswerInput -Prompt 'Do you want to manually specify a hostname?' -Default 'n').result -eq 1) {
|
||||
if ((Get-IcingaAgentInstallerAnswerInput -Prompt 'Do you want to automatically fetch the hostname with its FQDN?' -Default 'y').result -eq 1) {
|
||||
$InstallerArguments += '-AutoUseFQDN 1';
|
||||
|
|
|
|||
Loading…
Reference in a new issue