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.")