fixing vmcreate

This commit is contained in:
deflax 2016-11-03 07:11:13 +02:00
parent d84106f21d
commit 0f968b8fb6

View file

@ -28,7 +28,7 @@ def query_vm(req_cube_id):
def querydb(cubeid):
""" open a metadata file """
try:
dbfile = 'db/vm.{}.json'.format(cube)
dbfile = 'db/vm.{}.json'.format(cubeid)
dbf = open(dbfile, 'r')
data = json.load(dbf)
dbf.close()