Add provision to VM list state
This commit is contained in:
parent
53819b198c
commit
0076bcc83f
|
@ -633,7 +633,7 @@ def get_list(zk_conn, node, state, limit, is_fuzzy=True):
|
|||
return False, 'Specified node "{}" is invalid.'.format(node)
|
||||
|
||||
if state:
|
||||
valid_states = [ 'start', 'restart', 'shutdown', 'stop', 'disable', 'fail', 'migrate', 'unmigrate' ]
|
||||
valid_states = [ 'start', 'restart', 'shutdown', 'stop', 'disable', 'fail', 'migrate', 'unmigrate', 'provision' ]
|
||||
if not state in valid_states:
|
||||
return False, 'VM state "{}" is not valid.'.format(state)
|
||||
|
||||
|
|
Loading…
Reference in New Issue