icinga-powershell-framework/lib/core/icingaagent/tests/Test-IcingaAgentFeatureEnabled.psm1
2019-09-29 18:25:40 +02:00

14 lines
228 B
PowerShell

function Test-IcingaAgentFeatureEnabled()
{
param(
[string]$Feature
);
$Features = Get-IcingaAgentFeatures;
if ($Features.Enabled -Contains $Feature) {
return $TRUE;
}
return $FALSE;
}