fix order of operations bug
This commit is contained in:
parent
665d42d7ee
commit
0dff3bad07
@ -210,7 +210,7 @@ def index():
|
|||||||
state_not_equal_to_desired_state.append(db_vm)
|
state_not_equal_to_desired_state.append(db_vm)
|
||||||
elif 'public_ipv4' not in db_vm or db_vm["public_ipv4"] == "":
|
elif 'public_ipv4' not in db_vm or db_vm["public_ipv4"] == "":
|
||||||
has_no_desired_ip_address.append(db_vm)
|
has_no_desired_ip_address.append(db_vm)
|
||||||
elif db_vm["desired_state"] == "running" and 'public_ipv4' not in virt_vms_by_id[vm_id] or virt_vms_by_id[vm_id]['public_ipv4'] == "":
|
elif db_vm["desired_state"] == "running" and ('public_ipv4' not in virt_vms_by_id[vm_id] or virt_vms_by_id[vm_id]['public_ipv4'] == ""):
|
||||||
has_not_aquired_ip_address_yet.append(db_vm)
|
has_not_aquired_ip_address_yet.append(db_vm)
|
||||||
elif db_vm["desired_state"] == "running" and virt_vms_by_id[vm_id]['public_ipv4'] != db_vm["public_ipv4"]:
|
elif db_vm["desired_state"] == "running" and virt_vms_by_id[vm_id]['public_ipv4'] != db_vm["public_ipv4"]:
|
||||||
db_vm["desired_ipv4"] = db_vm["public_ipv4"]
|
db_vm["desired_ipv4"] = db_vm["public_ipv4"]
|
||||||
|
Loading…
Reference in New Issue
Block a user