This commit is contained in:
mantaohuang 2020-08-03 12:41:56 -04:00
parent b339453d90
commit cbf13ee43c

View File

@ -128,7 +128,7 @@ class ClearCacheInstatnceHandler(tornado.web.RequestHandler):
class SaveInstanceHandler(tornado.web.RequestHandler):
def get(self):
instances = om.serialize_instance_config()
with open(os.path.join(root), instance_config_fp, "w") as f:
with open(os.path.join(root, instance_config_fp), "w") as f:
f.write(json.dumps(instances))
self.write("OK")