add docker start command as argument
diff --git a/emuvim/api/zerorpcapi.py b/emuvim/api/zerorpcapi.py
index de43423..fd814b3 100755
--- a/emuvim/api/zerorpcapi.py
+++ b/emuvim/api/zerorpcapi.py
@@ -56,13 +56,13 @@
def __init__(self, dcs):
self.dcs = dcs
- def compute_action_start(self, dc_label, compute_name, image, network):
+ def compute_action_start(self, dc_label, compute_name, image, command, network):
# network e.g. {"ip": "10.0.0.254/8"}
# TODO what to return UUID / given name / internal name ?
logging.debug("RPC CALL: compute start")
try:
c = self.dcs.get(dc_label).startCompute(
- compute_name, image=image, network=network)
+ compute_name, image=image, command=command, network=network)
return str(c.name)
except Exception as ex:
logging.exception("RPC error.")
diff --git a/emuvim/api/zerorpcapi_DCNetwork.py b/emuvim/api/zerorpcapi_DCNetwork.py
index 7402f3d..83b158a 100644
--- a/emuvim/api/zerorpcapi_DCNetwork.py
+++ b/emuvim/api/zerorpcapi_DCNetwork.py
@@ -39,8 +39,8 @@
def connectDCNetwork(self, net):
self.net = net
- logging.info("Connected DCNetwork(%s) to API endpoint %s(%s:%d)" % (
- net.name, self.__class__.__name__, self.ip, self.port))
+ logging.info("Connected DCNetwork to API endpoint %s(%s:%d)" % (
+ self.__class__.__name__, self.ip, self.port))
def start(self):
thread = threading.Thread(target=self._api_server_thread, args=())