mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
BugFix
This commit is contained in:
parent
5f00166315
commit
fa764ea4aa
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user