Skip to content

#13347: ObRoot: Use field if property does not exist - #13375

Merged
Aditya Patwardhan (adityapatwardhan) merged 4 commits into
PowerShell:masterfrom
hemisphera:hemisphera-obroot-#13347
Aug 25, 2020
Merged

Aditya Patwardhan (adityapatwardhan) merged 4 commits into
PowerShell:masterfrom
hemisphera:hemisphera-obroot-#13347

Conversation

@hemisphera

@hemisphera Dee (hemisphera) commented Aug 7, 2020 •

Copy link
Copy Markdown
Contributor

PR Summary

Use field ObRoot if property ObRoot does not exist in GetContainerPropertiesInternal.

PR Context

Fix #13347

PR Checklist

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please look a comment above for RuntimeId and follow the same pattern - check the field first.

@SteveL-MSFT Steve Lee (SteveL-MSFT) left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks!

Dee (@hemisphera), you validated this works manually with a private build?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we should throw the RemotingErrorIdStrings.CannotGetHostInteropTypes exception here, same as above.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add similar comment about Hyper-V team changing property to field, to make it clear to others maintaining this code.

@ghost ghost added Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept and removed Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept labels Aug 10, 2020

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM
Thanks!

@SteveL-MSFT

Steve Lee (SteveL-MSFT) commented Aug 13, 2020 •

Copy link
Copy Markdown
Member

The codefactor issues are non-issues, so I think this PR is ready to go. Dee (@hemisphera), thanks for the contribution!

@adityapatwardhan

Copy link
Copy Markdown
Member

Dee (@hemisphera) Please have a look at suggestion from Rob Holt (@rjmholt)

@ghost ghost added the Review - Needed The PR is being reviewed label Aug 21, 2020
@ghost

Copy link
Copy Markdown

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

@iSazonov Ilya (iSazonov) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Aug 21, 2020
@adityapatwardhan
Aditya Patwardhan (adityapatwardhan) merged commit 126d942 into PowerShell:master Aug 25, 2020
@ghost ghost removed the Review - Needed The PR is being reviewed label Aug 25, 2020
@adityapatwardhan

Copy link
Copy Markdown
Member

Dee (@hemisphera) Thank you for your contribution!

@iSazonov Ilya (iSazonov) added this to the 7.1.0-preview.7 milestone Aug 26, 2020
@ghost

Copy link
Copy Markdown

🎉v7.1.0-preview.7 has been released which incorporates this pull request.:tada:

Handy links:

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PSSessions with Containers throw NullReferenceException

7 participants