icinga-powershell-framework/lib/core/thread/Set-IcingaEnvironmentGlobal.psm1
2022-01-25 10:00:19 +01:00

16 lines
320 B
PowerShell

function Set-IcingaEnvironmentGlobal()
{
param (
$GlobalEnvironment = $null
);
if ($null -eq $GlobalEnvironment -Or $null -eq $Global:Icinga) {
return;
}
if ($Global:Icinga.ContainsKey('Public') -eq $FALSE) {
return;
}
$Global:Icinga.Public = $GlobalEnvironment;
}