slight modification of internal API: startCompute returns EmulatorCompute object...
authorpeusterm <manuel.peuster@uni-paderborn.de>
Fri, 15 Jan 2016 10:08:09 +0000 (11:08 +0100)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Fri, 15 Jan 2016 10:08:09 +0000 (11:08 +0100)
emuvim/api/zerorpcapi.py
emuvim/dcemulator/node.py

index c6b9c70..8a08131 100644 (file)
@@ -60,7 +60,8 @@ class MultiDatacenterApi(object):
         # TODO what to return UUID / given name / internal name ?
         logging.debug("RPC CALL: compute start")
         try:
-            return self.dcs.get(dc_name).startCompute(compute_name)
+            c = self.dcs.get(dc_name).startCompute(compute_name)
+            return str(c.name)
         except Exception as ex:
             logging.exception("RPC error.")
             return ex.message
index 551ebaf..d506930 100644 (file)
@@ -113,7 +113,7 @@ class Datacenter(object):
         # do bookkeeping
         self.containers[name] = d
         d.datacenter = self
-        return name  # we might use UUIDs for naming later on
+        return d  # we might use UUIDs for naming later on
 
     def stopCompute(self, name):
         """