X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=emuvim%2Fapi%2Fzerorpcapi.py;h=fd814b323ac20f5dbae5c632c0fc9e24170d64b8;hb=4854f59e1bc2ea4d5b3495880940b52f6823affe;hp=de43423e2347fa44cbc1adb991c9d4acda3be2b9;hpb=a29c50cffd72de2f5533bb4f294adfe9a0f655d5;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.")