Skip to content

Check whether we are already attached/detached before hot attach/deta…#573

Merged
jterry75 merged 1 commit intomicrosoft:masterfrom
nagiesek:ignoreDuplicateHotAttachDetach
May 1, 2019
Merged

Check whether we are already attached/detached before hot attach/deta…#573
jterry75 merged 1 commit intomicrosoft:masterfrom
nagiesek:ignoreDuplicateHotAttachDetach

Conversation

@nagiesek
Copy link
Contributor

…ch calls

@nagiesek
Copy link
Contributor Author

return true, err
}

if strings.Contains(string(attachInfo.SharedContainers), vID) ||
Copy link
Contributor

Choose a reason for hiding this comment

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

SharedContainers should be sufficient for v1 Argon

There is no shared containers for v1 Xenon
Why are you checking VirtualMachine ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For completeness I guess, I can remove if you want.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@madhanrm fixed, take a look, I want to revendor the plugins repo w/ this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ugh, actually we should probably put them both to lower.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes please

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@nagiesek nagiesek force-pushed the ignoreDuplicateHotAttachDetach branch 2 times, most recently from 373d779 to b272896 Compare April 27, 2019 04:04
@madhanrm
Copy link
Contributor

/LGTM

@nagiesek
Copy link
Contributor Author

@jterry75

Copy link
Contributor

@jterry75 jterry75 left a comment

Choose a reason for hiding this comment

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

A few questions.

@nagiesek nagiesek force-pushed the ignoreDuplicateHotAttachDetach branch from b272896 to 6d67a30 Compare May 1, 2019 23:29
Copy link
Contributor

@jterry75 jterry75 left a comment

Choose a reason for hiding this comment

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

LGTM

@jterry75 jterry75 merged commit 1dcf37a into microsoft:master May 1, 2019
@nagiesek nagiesek deleted the ignoreDuplicateHotAttachDetach branch May 2, 2019 00:24
princepereira pushed a commit to princepereira/hcsshim that referenced this pull request Aug 29, 2024
…chDetach

Check whether we are already attached/detached before hot attach/deta…
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.

3 participants