icinga-powershell-framework/lib/core/icingaagent/tests/Test-IcingaAgentFeatureEnabled.psm1

15 lines
228 B
PowerShell
Raw Normal View History

2019-09-29 12:25:40 -04:00
function Test-IcingaAgentFeatureEnabled()
{
param(
[string]$Feature
);
$Features = Get-IcingaAgentFeatures;
if ($Features.Enabled -Contains $Feature) {
return $TRUE;
}
return $FALSE;
}