mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
30 lines
779 B
PowerShell
30 lines
779 B
PowerShell
|
|
function Get-IcingaForWindowsInstallerValuesFromStep()
|
||
|
|
{
|
||
|
|
param (
|
||
|
|
[string]$InstallerStep,
|
||
|
|
[string]$Parent
|
||
|
|
);
|
||
|
|
|
||
|
|
[array]$Values = @();
|
||
|
|
|
||
|
|
$Step = Get-IcingaForWindowsManagementConsoleMenu;
|
||
|
|
|
||
|
|
if ([string]::IsNullOrEmpty($InstallerStep) -eq $FALSE) {
|
||
|
|
$Step = Get-IcingaForWindowsManagementConsoleAlias -Command $InstallerStep;
|
||
|
|
|
||
|
|
if ([string]::IsNullOrEmpty($Parent) -eq $FALSE) {
|
||
|
|
$Step = [string]::Format('{0}:{1}', $Step, $Parent);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
if ($global:Icinga.InstallWizard.Config.ContainsKey($Step) -eq $FALSE) {
|
||
|
|
return @();
|
||
|
|
}
|
||
|
|
|
||
|
|
if ($null -eq $global:Icinga.InstallWizard.Config[$Step].Values) {
|
||
|
|
return @();
|
||
|
|
}
|
||
|
|
|
||
|
|
return [array]($global:Icinga.InstallWizard.Config[$Step].Values);
|
||
|
|
}
|