Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Microsoft.WSMan.Management/ConfigProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,11 @@ protected override bool IsItemContainer(string path)

// Get the wsman host name to find the session object
string host = GetHostName(path);
if (string.IsNullOrEmpty(host))
{
return false;
}

string WsManURI = NormalizePath(path, host);

lock (WSManHelper.AutoSession)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ Describe "WSMan Config Provider" -Tag Feature,RequireAdminOnWindows {
}
}
}

It "Container check works" {
Test-Path wsman:\foo -PathType container | Should -BeFalse
}
}

Context "Get-Item tests" {
Expand Down