From 4d2c74c1d801a5c882954425bc830a27e50bd360 Mon Sep 17 00:00:00 2001 From: forest Date: Sun, 19 Dec 2021 12:11:56 -0600 Subject: [PATCH] oops, fix copy and paste error (check ipv4 != "") --- capsulflask/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: