Skip to content

the root module path always refers to the icinga-powershell-framework folder #237

@gbin2265

Description

@gbin2265

Hello,

Every time I want to install a module (plugin,restapi,...) is the destination path C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework\
and not C:\Program Files\WindowsPowerShell\Modules\

If i do:

Use-Icinga;

Install-IcingaFrameworkComponent -Name plugins -Release;

The destination path is C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework\icinga-powershell-plugins
and not C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-plugins

Because of this I always have the following message:
Import-Module : The specified module 'icinga-powershell-plugins' was not loaded because no valid module file was found in any module directory.
At C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework\1.4.1\lib\core\framework\Install-IcingaFrameworkComponent.psm1:116 char:5

  • Import-Module $RepositoryName;
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ResourceUnavailable: (icinga-powershell-plugins:String) [Import-Module], FileNotFoundException
    • FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Also if i want to remove the framework:

Uninstall-IcingaForWindows;

i have the error
[Notice]: The Icinga for Windows component "icinga-powershell-framework" at "C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework\icinga-powershell-framework" could not ne found.
because the path is refer to icinga-powershell-framework in icinga-powershell-framework.

is it possible that the module root path is not correct when i use the command Install-IcingaFrameworkComponent or Uninstall-IcingaForWindows ?

The version of powershell : 5.1.19041.906
Version of the framework is 1.4.1 (latest version)
Windows 10 Pro - 21H1

regards,
Geert

Metadata

Metadata

Assignees

Labels

BugThere is an issue present

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions