icinga-powershell-framework/lib/core/thread/Set-IcingaEnvironmentGlobal.psm1

17 lines
320 B
PowerShell
Raw Normal View History

2021-12-09 11:42:06 -05:00
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;
}