vm.ejectCd() succeed even if the VBD cannot be destroyed.

This commit is contained in:
Julien Fontanet 2015-05-29 15:23:36 +02:00
parent 26e8ae4bf3
commit 01ecd76976

View File

@ -274,7 +274,9 @@ ejectCd = $coroutine ({vm}) ->
if cdDriveRef
$wait xapi.call 'VBD.eject', cdDriveRef
$wait xapi.call 'VBD.destroy', cdDriveRef
# Silently attempts to destroy the VBD.
xapi.call('VBD.destroy', cdDriveRef).catch(->)
return true