Minor fix in vm.stop().
This commit is contained in:
parent
5b05668a30
commit
cd24cfbe5c
@ -582,7 +582,7 @@ stop = $coroutine ({vm, force}) ->
|
|||||||
try
|
try
|
||||||
yield xapi.call 'VM.clean_shutdown', vm.ref
|
yield xapi.call 'VM.clean_shutdown', vm.ref
|
||||||
catch error
|
catch error
|
||||||
if error.code is 'VM_MISSING_PV_DRIVERS' or error.code 'VM_LACKS_FEATURE_SHUTDOWN'
|
if error.code is 'VM_MISSING_PV_DRIVERS' or error.code is 'VM_LACKS_FEATURE_SHUTDOWN'
|
||||||
# TODO: Improve reporting: this message is unclear.
|
# TODO: Improve reporting: this message is unclear.
|
||||||
@throw 'INVALID_PARAMS'
|
@throw 'INVALID_PARAMS'
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user