This commit is contained in:
Daniel Dye 2015-01-18 12:58:41 -05:00
parent 5f00166315
commit fa764ea4aa

View File

@ -230,14 +230,15 @@ def create(vm_):
return False
def __query_node_data(vm_, data):
running = False
try:
node = show_instance(vm_['name'], 'action')
running = (node['state'] == NodeState.RUNNING)
log.debug(
'Loaded node data for {0}:\n{1}'.format(
'Loaded node data for {0}:\nname: {1}\nstate: {2}'.format(
vm_['name'],
pprint.pformat(
node['name']
)
pprint.pformat(node['name']),
node['state']
)
)
except Exception as err:
@ -251,15 +252,13 @@ def create(vm_):
# Trigger a failure in the wait for IP function
return False
running = node['name']['state'] == node_state(
NodeState.RUNNING
)
if not running:
# Still not running, trigger another iteration
return
private = node['name']['private_ips']
public = node['name']['public_ips']
private = node['private_ips']
public = node['public_ips']
if private and not public:
log.warn(