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 5d681ac65d
commit e937195e16

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;
}