From: stevenvanrossem Date: Fri, 7 Apr 2017 15:20:50 +0000 (+0200) Subject: cleanup logging X-Git-Tag: v3.1~33^2~5 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=1816508dbd9beb79e81fcc0bedb60ef7de2a151e;p=osm%2Fvim-emu.git cleanup logging --- 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