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

CA-194089: allow no-op VM.set_has_vendor_device #2548

Merged

Conversation

thomassa
Copy link
Contributor

@thomassa thomassa commented Jan 4, 2016

In Xapi_vm.assert_can_set_has_vendor_device, we were raising an
exception if the PV drivers were in use. Now we do this check only
if the new value of has_vendor_device is different to the old one.

@thomassa
Copy link
Contributor Author

thomassa commented Jan 4, 2016

The other approach would have been to require every client to compare the old and new values and only make the API call if they differ.

In Xapi_vm.assert_can_set_has_vendor_device, we were raising an
exception if the PV drivers were in use.  Now we do this check only
if the new value of has_vendor_device is different to the old one.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
@thomassa thomassa force-pushed the allow-set-vendor-device-unchanged branch from f82cd63 to b08fd46 Compare January 4, 2016 14:47
@robhoes
Copy link
Member

robhoes commented Jan 4, 2016

:shipit:

thomassa added a commit that referenced this pull request Jan 4, 2016
CA-194089: allow no-op VM.set_has_vendor_device
@thomassa thomassa merged commit 358aa80 into xapi-project:master Jan 4, 2016
jonludlam pushed a commit to jonludlam/xen-api that referenced this pull request Jan 21, 2016
…evice-unchanged

CA-194089: allow no-op VM.set_has_vendor_device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants