From: stevenvanrossem Date: Fri, 10 Feb 2017 16:18:44 +0000 (+0100) Subject: update getStatus print to include all resources X-Git-Tag: v3.1~44^2~4 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=08272498b4df3878152f3c9a07a47a8fdae627de;p=osm%2Fvim-emu.git update getStatus print to include all resources --- diff --git a/src/emuvim/dcemulator/node.py b/src/emuvim/dcemulator/node.py index 2702bf5..c5ac9b3 100755 --- a/src/emuvim/dcemulator/node.py +++ b/src/emuvim/dcemulator/node.py @@ -82,12 +82,12 @@ class EmulatorCompute(Docker): status["docker_network"] = self.dcinfo['NetworkSettings']['IPAddress'] status["image"] = self.dimage status["flavor_name"] = self.flavor_name - status["cpu_quota"] = self.cpu_quota - status["cpu_period"] = self.cpu_period - status["cpu_shares"] = self.cpu_shares - status["cpuset"] = self.cpuset - status["mem_limit"] = self.mem_limit - status["memswap_limit"] = self.memswap_limit + status["cpu_quota"] = self.resources.get('cpu_quota') + status["cpu_period"] = self.resources.get('cpu_period') + status["cpu_shares"] = self.resources.get('cpu_shares') + status["cpuset"] = self.resources.get('cpuset_cpus') + status["mem_limit"] = self.resources.get('mem_limit') + status["memswap_limit"] = self.resources.get('memswap_limit') status["state"] = self.dcli.inspect_container(self.dc)["State"] status["id"] = self.dcli.inspect_container(self.dc)["Id"] status["short_id"] = self.dcli.inspect_container(self.dc)["Id"][:12]