1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 15:15:22 +00:00

correction of variable. both are working but latest change is right

This commit is contained in:
catborise 2018-08-08 11:26:36 +03:00
parent fcb2924e95
commit c80e142522

View file

@ -73,18 +73,18 @@ def instances(request):
if check_uuid.uuid != info['uuid']: if check_uuid.uuid != info['uuid']:
check_uuid.save() check_uuid.save()
all_host_vms[comp_info["id"], all_host_vms[comp["id"],
comp_info["name"], comp["name"],
comp_info["status"], comp["status"],
comp_info["cpu"], comp["cpu"],
comp_info["mem_size"], comp["mem_size"],
comp_info["mem_perc"]][vm]['is_template'] = check_uuid.is_template comp["mem_perc"]][vm]['is_template'] = check_uuid.is_template
all_host_vms[comp_info["id"], all_host_vms[comp["id"],
comp_info["name"], comp["name"],
comp_info["status"], comp["status"],
comp_info["cpu"], comp["cpu"],
comp_info["mem_size"], comp["mem_size"],
comp_info["mem_perc"]][vm]['userinstances'] = get_userinstances_info(check_uuid) comp["mem_perc"]][vm]['userinstances'] = get_userinstances_info(check_uuid)
except Instance.DoesNotExist: except Instance.DoesNotExist:
check_uuid = Instance(compute_id=comp["id"], name=vm, uuid=info['uuid']) check_uuid = Instance(compute_id=comp["id"], name=vm, uuid=info['uuid'])
check_uuid.save() check_uuid.save()