mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes empty variable content
This commit is contained in:
parent
9271d7b646
commit
67e2f55802
1 changed files with 10 additions and 2 deletions
|
|
@ -363,7 +363,11 @@ function Start-IcingaAgentInstallWizard()
|
|||
} else {
|
||||
$InstallerArguments += "-Ticket '$Ticket'";
|
||||
}
|
||||
$InstallerArguments += "-EmptyTicket $EmptyTicket"
|
||||
if ($null -eq $EmptyTicket) {
|
||||
$InstallerArguments += "-EmptyTicket 1"
|
||||
} else {
|
||||
$InstallerArguments += "-EmptyTicket $EmptyTicket"
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ([string]::IsNullOrEmpty($CAFile) -And $null -eq $EmptyCA) {
|
||||
|
|
@ -385,7 +389,11 @@ function Start-IcingaAgentInstallWizard()
|
|||
} else {
|
||||
$InstallerArguments += "-CAFile '$CAFile'";
|
||||
}
|
||||
$InstallerArguments += "-EmptyCA $EmptyCA"
|
||||
if ($null -eq $EmptyCA) {
|
||||
$InstallerArguments += "-EmptyCA 1"
|
||||
} else {
|
||||
$InstallerArguments += "-EmptyCA $EmptyCA"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue