Add support to fetch custom version of Icinga modules

This commit is contained in:
Lord Hepipud 2019-11-03 15:54:25 +01:00
parent f3cf7f1364
commit a0e44ab251

View file

@ -0,0 +1,14 @@
function Get-IcingaPowerShellModuleVersion()
{
param(
$ModuleName
);
$ModuleDetails = Get-Module -Name $ModuleName;
if ($null -eq $ModuleDetails) {
return $null;
}
return $ModuleDetails.PrivateData.Version;
}