fix missing paren

This commit is contained in:
forest 2021-02-17 21:46:46 -06:00
parent 2cca908d79
commit fa0ddad5f5

View File

@ -74,7 +74,7 @@ def index():
size=x['size'], size=x['size'],
state=x['state'], state=x['state'],
ipv4=(x['ipv4'] if x['ipv4'] else ("..booting.." if vm["state"] == "running" else "unknown")), ipv4=(x['ipv4'] if x['ipv4'] else ("..booting.." if vm["state"] == "running" else "unknown")),
ipv4_status=("ok" if x['ipv4'] else ("waiting-pulse" if vm["state"] == "running" else "yellow"), ipv4_status=("ok" if x['ipv4'] else ("waiting-pulse" if vm["state"] == "running" else "yellow")),
os=x['os'], os=x['os'],
created=x['created'].strftime("%b %d %Y") created=x['created'].strftime("%b %d %Y")
), vms ), vms