From 30446e6965f94b6bca592e19a06c860f4d90857d Mon Sep 17 00:00:00 2001 From: Steven Van Rossem Date: Mon, 20 Nov 2017 14:25:43 +0100 Subject: [PATCH] cleanup code --- src/emuvim/dcemulator/node.py | 13 ------------- 1 file changed, 13 deletions(-) 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): -- 2.25.1