From 1816508dbd9beb79e81fcc0bedb60ef7de2a151e Mon Sep 17 00:00:00 2001 From: stevenvanrossem Date: Fri, 7 Apr 2017 17:20:50 +0200 Subject: [PATCH] cleanup logging --- src/emuvim/api/sonata/dummygatekeeper.py | 1 + src/emuvim/dcemulator/node.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/emuvim/api/sonata/dummygatekeeper.py b/src/emuvim/api/sonata/dummygatekeeper.py index a7b2c26..4e98c6a 100755 --- a/src/emuvim/api/sonata/dummygatekeeper.py +++ b/src/emuvim/api/sonata/dummygatekeeper.py @@ -457,6 +457,7 @@ class Service(object): # create list of all SAPs # check if we need to deploy management ports if USE_DOCKER_MGMT: + LOG.debug("nsd: {0}".format(self.nsd)) SAPs = [p for p in self.nsd["connection_points"] if 'management' not in p.get('type')] else: SAPs = [p for p in self.nsd["connection_points"]] diff --git a/src/emuvim/dcemulator/node.py b/src/emuvim/dcemulator/node.py index e0eb7d3..5cfc9ef 100755 --- a/src/emuvim/dcemulator/node.py +++ b/src/emuvim/dcemulator/node.py @@ -91,8 +91,10 @@ class EmulatorCompute(Docker): 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] + status["hostname"] = self.dcli.inspect_container(self.dc)["Config"]['Hostname'] status["datacenter"] = (None if self.datacenter is None else self.datacenter.label) + return status -- 2.25.1