mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix vultr cloud race condition to match on 0*
This commit is contained in:
parent
cfba4cb422
commit
aae3d14ea4
1 changed files with 2 additions and 1 deletions
|
@ -296,7 +296,8 @@ def create(vm_):
|
|||
'''
|
||||
data = show_instance(vm_['name'], call='action')
|
||||
pprint.pprint(data)
|
||||
if str(data.get('main_ip', '0')) == '0':
|
||||
main_ip = str(data.get('main_ip', '0'))
|
||||
if main_ip.startswith('0'):
|
||||
time.sleep(3)
|
||||
return False
|
||||
return data['main_ip']
|
||||
|
|
Loading…
Add table
Reference in a new issue