Azure / Azure/AzureStack-Tools

"Import-Module ..\" is not correct

Đang mở
#614 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PowerShell
Star
260
Fork
283
Merge trung bình
2 giờ 11 phút
Pull request đã merge (30 ngày)
1

Mô tả

**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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Open Identity/README.md and review the Import-Module examples for the Connect and Identity modules. Update the documented paths to use .\ instead of ..\, then verify that both examples match the paths shown in the issue.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
powershell
Lĩnh vực
documentation
Loại issue
Tài liệu
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.