From: peusterm Date: Fri, 13 May 2016 12:40:02 +0000 (+0200) Subject: state API fix X-Git-Tag: v3.1~123^2~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=a3ddebae7ff1346806d1a52abed12dae9969114f;p=osm%2Fvim-emu.git state API fix --- 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"),