mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Improves connection conversion wizard handling
This commit is contained in:
parent
2ac3de5267
commit
4a869458cc
1 changed files with 4 additions and 4 deletions
|
|
@ -282,7 +282,7 @@ function Start-IcingaAgentInstallWizard()
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($null -eq $ConvertEndpointIPConfig) {
|
if ($null -eq $ConvertEndpointIPConfig) {
|
||||||
if ((Get-IcingaAgentInstallerAnswerInput -Prompt ([string]::Format('Do you want to convert all possible provided FQDN address for endpoint/network configuration for Icinga 2 to plain IP-Address?', $CAPort)) -Default 'y').result -eq 1) {
|
if ((Get-IcingaAgentInstallerAnswerInput -Prompt 'Do you want to convert endpoint connection data to IP adresses?' -Default 'y').result -eq 1) {
|
||||||
$InstallerArguments += "-ConvertEndpointIPConfig 1";
|
$InstallerArguments += "-ConvertEndpointIPConfig 1";
|
||||||
$ConvertEndpointIPConfig = $TRUE;
|
$ConvertEndpointIPConfig = $TRUE;
|
||||||
if ($EndpointConnections.Count -eq 0) {
|
if ($EndpointConnections.Count -eq 0) {
|
||||||
|
|
@ -291,7 +291,7 @@ function Start-IcingaAgentInstallWizard()
|
||||||
$EndpointsConversion = Convert-IcingaEndpointsToIPv4 -NetworkConfig $EndpointConnections;
|
$EndpointsConversion = Convert-IcingaEndpointsToIPv4 -NetworkConfig $EndpointConnections;
|
||||||
}
|
}
|
||||||
if ($EndpointsConversion.HasErrors) {
|
if ($EndpointsConversion.HasErrors) {
|
||||||
Write-Host ([string]::Format('Not all of your endpoint configuration could be resolved and is not reachable by this host. These endpoints were dropped: {0}', ([string]::Join(', ', $EndpointsConversion.Unresolved))));
|
Write-Host ([string]::Format('Not all of your endpoint connection data could be resolved and are not reachable by this host. These endpoints were dropped: {0}', ([string]::Join(', ', $EndpointsConversion.Unresolved))));
|
||||||
}
|
}
|
||||||
$EndpointConnections = $EndpointsConversion.Network;
|
$EndpointConnections = $EndpointsConversion.Network;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue