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

fix: bug potentially not removing RW device. #1737

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

anmaxvl
Copy link
Contributor

@anmaxvl anmaxvl commented Apr 18, 2023

No description provided.

@anmaxvl anmaxvl requested a review from a team as a code owner April 18, 2023 00:53
@@ -538,7 +538,7 @@ func (h *Host) CreateContainer(ctx context.Context, id string, settings *prot.VM
return c, nil
}

func (h *Host) modifyHostSettings(ctx context.Context, containerID string, req *guestrequest.ModificationRequest) (err error) {
func (h *Host) modifyHostSettings(ctx context.Context, containerID string, req *guestrequest.ModificationRequest) (retErr error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm missing where retErr is ever written to?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, interesting. The retErr is assigned to as part of the return. For anyone else confused like I was:
https://go.dev/play/p/IDH-93ODPLs

Signed-off-by: Maksim An <maksiman@microsoft.com>
Copy link
Contributor

@msscotb msscotb left a comment

Choose a reason for hiding this comment

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

LGTM

@anmaxvl anmaxvl merged commit c150662 into microsoft:main Apr 26, 2023
14 of 16 checks passed
@anmaxvl anmaxvl deleted the fix/err-shadow branch April 26, 2023 22:31
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.

None yet

4 participants