AsBuiltReport / AsBuiltReport.NetApp.ONTAP

A PowerShell module to generate an as built report on the configuration of NetApp ONTAP storage arrays.
MIT License
15 stars 3 forks source link

Cannot import-module for use #3

Closed Reactor46 closed 3 years ago

Reactor46 commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Open Powershell console or ISE
  2. Import-Module .\AsBuiltReport.NetApp.ONTAP-0.3.0\AsBuiltReport.NetApp.ONTAP.psm1
  3. See error: D:\GIT_REPO\AsBuiltReport.NetApp.ONTAP-0.3.0\AsBuiltReport.NetApp.ONTAP.psm1 : Failed to import function

Expected behavior Import-Module should import the module for standard use.

Screenshots Import-Module .\AsBuiltReport.NetApp.ONTAP-0.3.0\AsBuiltReport.NetApp.ONTAP.psm1 D:\GIT_REPO\AsBuiltReport.NetApp.ONTAP-0.3.0\AsBuiltReport.NetApp.ONTAP.psm1 : Failed to import function D:\GIT_REPO\AsBuiltReport.NetApp.ONTAP-0.3.0\Src\Private\Get-AbrOntapNetworkMGMT.ps1: At D:\GIT_REPO\AsBuiltReport.NetApp.ONTAP-0.3.0\Src\Private\Get-AbrOntapNetworkMGMT.ps1:36 char:97

Desktop (please complete the following information):

tpcarman commented 3 years ago

@Reactor46 You either need to add D:\GIT_REPO to $env:PSModulePath or extract the NetApp ONTAP module to one of the folders already in $env:PSModulePath. The module folder name should also be AsBuiltReport.NetApp.ONTAP.

rebelinux commented 3 years ago

Hello @Reactor46,

Could you test with the most recent version 0.4.0?

What is your powershell version? $PSVersionTable

Reactor46 commented 3 years ago

Works with .0.4.0 now!

Name Value


PSVersion 5.1.17763.2090
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.2090
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

rebelinux commented 3 years ago

The report is in constant development, if you have any recommendations they will be well received.