From a3ddebae7ff1346806d1a52abed12dae9969114f Mon Sep 17 00:00:00 2001 From: peusterm Date: Fri, 13 May 2016 14:40:02 +0200 Subject: [PATCH] state API fix --- src/emuvim/cli/compute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emuvim/cli/compute.py b/src/emuvim/cli/compute.py index dcb499d..0b3f38d 100755 --- a/src/emuvim/cli/compute.py +++ b/src/emuvim/cli/compute.py @@ -57,9 +57,9 @@ class ZeroRpcClient(object): eth0ip = None eth0status = "down" if len(status.get("network")) > 0: - eth0ip = status.get("network")[0][1] + eth0ip = status.get("network")[0].get("ip") eth0status = "up" if status.get( - "network")[0][3] else "down" + "network")[0].get("up") else "down" table.append([status.get("datacenter"), name, status.get("image"), -- 2.25.1