@ -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()