mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
17 lines
320 B
PowerShell
17 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;
|
||
|
|
}
|