Skip to content

Conversation

@SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Sep 27, 2018

PR Summary

The code tries to retrieve the runtimeid of the container, but Hyper-V team changed the type name (namespace) and from a property to a field. To support older Windows, we first check for the new type and then fallback to checking for the old type.

Fix #5794

PR Checklist

…heck for new type and fall back to old type
@SteveL-MSFT SteveL-MSFT force-pushed the enter-pssession-container branch from 9dd69f3 to db88f4b Compare October 3, 2018 19:47
Copy link
Contributor

@PaulHigin PaulHigin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daxian-dbw daxian-dbw merged commit 339abe0 into PowerShell:master Oct 9, 2018
@SteveL-MSFT SteveL-MSFT deleted the enter-pssession-container branch October 9, 2018 21:52
adityapatwardhan pushed a commit to adityapatwardhan/PowerShell that referenced this pull request Apr 9, 2019
…#7883)

Hyper-V team changed the type used to get the `runtimeid`. We need to check for new type and fall back to old type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enter-PSSession -ContainerId $id returns Object reference not set to an instance of an object.

4 participants