Merge pull request #349 from Icinga:fix/module_file_should_point_to_psd1

Fix: Module file should always point to .psd1 instead of .psm1

We have to ensure with Icinga for Windows 1.6.0 that we always point to the `.psd1` file instead of the `.psm1` file, especially when working with the `icingapowershellservice`
This commit is contained in:
Lord Hepipud 2021-08-20 18:15:46 +02:00 committed by GitHub
commit 0e68cfafd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,7 +199,7 @@ function Get-IcingaForWindowsRootPath()
function Get-IcingaPowerShellModuleFile() function Get-IcingaPowerShellModuleFile()
{ {
return (Join-Path -Path $PSScriptRoot -ChildPath 'icinga-powershell-framework.psm1'); return (Join-Path -Path $PSScriptRoot -ChildPath 'icinga-powershell-framework.psd1');
} }
function Invoke-IcingaCommand() function Invoke-IcingaCommand()