Allow start/restart container in Error state

This allows the container to be recovered by a restart

Change-Id: I29ead99abe9cf05573f1142715cd7c36e7ca4f86
This commit is contained in:
Hongbin Lu 2017-04-13 21:14:39 -04:00
parent 54e74a61c8
commit 19a0879868

View File

@ -39,9 +39,9 @@ VALID_STATES = {
'delete': [consts.CREATED, consts.ERROR, consts.STOPPED],
'delete_force': [consts.CREATED, consts.CREATING, consts.ERROR,
consts.RUNNING, consts.STOPPED, consts.UNKNOWN],
'start': [consts.CREATED, consts.STOPPED],
'start': [consts.CREATED, consts.STOPPED, consts.ERROR],
'stop': [consts.RUNNING],
'reboot': [consts.CREATED, consts.RUNNING, consts.STOPPED],
'reboot': [consts.CREATED, consts.RUNNING, consts.STOPPED, consts.ERROR],
'pause': [consts.RUNNING],
'unpause': [consts.PAUSED],
'kill': [consts.RUNNING],