vm.ejectCd() succeed even if the VBD cannot be destroyed.
This commit is contained in:
parent
26e8ae4bf3
commit
01ecd76976
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user