forked from 3wordchant/capsul-flask
fixing exception in capsul detail
This commit is contained in:
@ -160,6 +160,8 @@ def detail(id):
|
||||
vm["state"] = vm_from_virt_model.state
|
||||
if needs_ssh_host_keys:
|
||||
vm["ssh_host_keys"] = vm_from_virt_model.ssh_host_keys
|
||||
else:
|
||||
vm["state"] = "unknown"
|
||||
|
||||
if vm["state"] == "running" and not vm["ipv4"]:
|
||||
vm["state"] = "starting"
|
||||
|
Reference in New Issue
Block a user