Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Petri: Powershell command builder for Hyper-V cmdlets #829

Merged
merged 2 commits into from
Feb 11, 2025

Conversation

tjones60
Copy link
Contributor

@tjones60 tjones60 commented Feb 8, 2025

Refactors the powershell commands used for hyper-v petri to use a builder. In the future, this could be split out into a separate crate.

@tjones60 tjones60 requested a review from a team as a code owner February 8, 2025 00:08
@@ -237,35 +209,31 @@ pub struct CreateVhdArgs<'a> {

/// Create a new VHD, mount, initialize, and format. Returns drive letter.
pub fn create_vhd(args: CreateVhdArgs<'_>) -> anyhow::Result<char> {
Copy link
Member

Choose a reason for hiding this comment

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

Should we delete this function? I'd rather we didn't make it easy to mount VHDs on the host, since that makes the tests impossible to run on Linux (for OpenVMM tests).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, it's not being used anyway since I switched to the vhd1 crate like you suggested.

@tjones60 tjones60 merged commit 80681d8 into microsoft:main Feb 11, 2025
26 checks passed
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.

2 participants