From: Steven Van Rossem Date: Mon, 20 Nov 2017 13:25:43 +0000 (+0100) Subject: cleanup code X-Git-Tag: v3.1~1^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=30446e6965f94b6bca592e19a06c860f4d90857d;p=osm%2Fvim-emu.git cleanup code --- diff --git a/src/emuvim/dcemulator/node.py b/src/emuvim/dcemulator/node.py index 9bc0b3e..e32c6d3 100755 --- a/src/emuvim/dcemulator/node.py +++ b/src/emuvim/dcemulator/node.py @@ -284,19 +284,6 @@ class Datacenter(object): # do bookkeeping self.containers[name] = d - # Execute SON_EMU_CMD - config = d.dcinfo.get("Config", dict()) - env = config.get("Env", list()) - for env_var in env: - var, cmd = map(str.strip, map(str, env_var.split('=', 1))) - LOG.debug("%r = %r" % (var, cmd)) - if var == "SON_EMU_CMD": - LOG.info("Executing entry point script in %r: %r" % (d.name, cmd)) - # execute command in new thread to ensure that GK is not blocked by VNF - t = threading.Thread(target=d.cmdPrint, args=(cmd,)) - t.daemon = True - t.start() - return d # we might use UUIDs for naming later on def stopCompute(self, name):