mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-10 01:17:59 +03:00
Small fix for better cancel on opennebula
This commit is contained in:
parent
170319f871
commit
c62e90f0a1
@ -39,7 +39,7 @@ from . import on
|
|||||||
import pickle
|
import pickle
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
__updated__ = '2016-07-11'
|
__updated__ = '2017-02-28'
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
@ -500,7 +500,7 @@ class LiveDeployment(UserDeployment):
|
|||||||
if op == opError:
|
if op == opError:
|
||||||
return self.__error('Machine is already in error state!')
|
return self.__error('Machine is already in error state!')
|
||||||
|
|
||||||
if op == opFinish or op == opWait:
|
if op in [opFinish, opWait, opStart]:
|
||||||
self._queue = [opRemove, opFinish]
|
self._queue = [opRemove, opFinish]
|
||||||
return self.__executeQueue()
|
return self.__executeQueue()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user