Exemplo n.º 1
0
 def instance_create(self, topology_json, config_txt):
     try:
         istore = InstanceStore(self.instances_dir)
         inst = istore.create_new_instance(topology_json, config_txt)
     except ConfigException, cfge:
         message = "Error in configuration file: %s" % cfge
         return (API.STATUS_FAIL, message, None)