Fix variable naming bug
This commit is contained in:
parent
061b4eb61e
commit
dc16f51b2a
|
@ -563,9 +563,8 @@ def get_info(zk_conn, domain):
|
||||||
def get_list(zk_conn, node, state, limit):
|
def get_list(zk_conn, node, state, limit):
|
||||||
if node:
|
if node:
|
||||||
# Verify node is valid
|
# Verify node is valid
|
||||||
valid_node = common.verifyNode(zk_conn, target_node)
|
if not common.verifyNode(zk_conn, node):
|
||||||
if not valid_node:
|
return False, "Specified node {} is invalid.".format(node)
|
||||||
return False, "Specified node {} is invalid.".format(target_node)
|
|
||||||
|
|
||||||
if state:
|
if state:
|
||||||
valid_states = [ 'start', 'restart', 'shutdown', 'stop', 'failed', 'migrate', 'unmigrate' ]
|
valid_states = [ 'start', 'restart', 'shutdown', 'stop', 'failed', 'migrate', 'unmigrate' ]
|
||||||
|
|
Loading…
Reference in New Issue