diff --git a/capsulflask/console.py b/capsulflask/console.py index 3d64c24..5bf5bce 100644 --- a/capsulflask/console.py +++ b/capsulflask/console.py @@ -31,7 +31,7 @@ def double_check_capsul_address(id, existing_ipv4, get_ssh_host_keys): try: result = current_app.config["HUB_MODEL"].get(id, get_ssh_host_keys) - if result != None and result != "" and (existing_ipv4 == None or existing_ipv4 == ""): + if result != None and result.ipv4 != "" and (existing_ipv4 == None or existing_ipv4 == ""): get_model().update_vm_ip(email=session["account"], id=id, ipv4=result.ipv4) if result != None and result.ssh_host_keys != None and get_ssh_host_keys: