X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=emuvim%2Fapi%2Fzerorpcapi.py;fp=emuvim%2Fapi%2Fzerorpcapi.py;h=fd814b323ac20f5dbae5c632c0fc9e24170d64b8;hb=8fbf9781aa638201aa54b3e5e7c2c7384b7ca8f7;hp=de43423e2347fa44cbc1adb991c9d4acda3be2b9;hpb=58bd1f23e0d06257c9e5223156661d8f58d4f01e;p=osm%2Fvim-emu.git 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 @@ class MultiDatacenterApi(object): 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.")