cleanup logging
authorstevenvanrossem <steven.vanrossem@intec.ugent.be>
Fri, 7 Apr 2017 15:20:50 +0000 (17:20 +0200)
committerstevenvanrossem <steven.vanrossem@intec.ugent.be>
Fri, 7 Apr 2017 15:20:50 +0000 (17:20 +0200)
src/emuvim/api/sonata/dummygatekeeper.py
src/emuvim/dcemulator/node.py

index a7b2c26..4e98c6a 100755 (executable)
@@ -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"]]
index e0eb7d3..5cfc9ef 100755 (executable)
@@ -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