Azure / Azure/AzureStack-Tools
"Import-Module ..\" is not correct
- 主要语言
- PowerShell
- 星标
- 260
- 派生
- 283
- 平均合并
- 2 小时 11 分钟
- 30 天内合并 PR
- 1
描述
**In https://github.com/Azure/AzureStack-Tools/blob/master/Identity/README.md**
Import-Module ..\Connect\AzureStack.Connect.psm1
Import-Module ..\Identity\AzureStack.Identity.psm1
**importing the above modules throw below exception**
Import-Module : The specified module '..\Connect\AzureStack.Connect.psm1' was not loaded because no valid module file was found in any module directory.
At line:1 char:1
+ Import-Module ..\Connect\AzureStack.Connect.psm1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (..\Connect\AzureStack.Connect.psm1:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
**- it should be with single "."**
Import-Module .\Connect\AzureStack.Connect.psm1
Import-Module .\Identity\AzureStack.Identity.psm1
贡献指南
调研方向
打开 Identity/README.md,检查 Connect 和 Identity 模块的 Import-Module 示例。更新文档中的路径,使用 .\ 而不是 ..\,然后验证两个示例是否都与 issue 中显示的路径一致。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- powershell
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100