From c80e14252242ae7ac2961a18dbbf23915556749b Mon Sep 17 00:00:00 2001 From: catborise Date: Wed, 8 Aug 2018 11:26:36 +0300 Subject: [PATCH] correction of variable. both are working but latest change is right --- instances/views.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/instances/views.py b/instances/views.py index 4d835fc..5a6ca46 100644 --- a/instances/views.py +++ b/instances/views.py @@ -73,18 +73,18 @@ def instances(request): if check_uuid.uuid != info['uuid']: check_uuid.save() - all_host_vms[comp_info["id"], - comp_info["name"], - comp_info["status"], - comp_info["cpu"], - comp_info["mem_size"], - comp_info["mem_perc"]][vm]['is_template'] = check_uuid.is_template - all_host_vms[comp_info["id"], - comp_info["name"], - comp_info["status"], - comp_info["cpu"], - comp_info["mem_size"], - comp_info["mem_perc"]][vm]['userinstances'] = get_userinstances_info(check_uuid) + all_host_vms[comp["id"], + comp["name"], + comp["status"], + comp["cpu"], + comp["mem_size"], + comp["mem_perc"]][vm]['is_template'] = check_uuid.is_template + all_host_vms[comp["id"], + comp["name"], + comp["status"], + comp["cpu"], + comp["mem_size"], + comp["mem_perc"]][vm]['userinstances'] = get_userinstances_info(check_uuid) except Instance.DoesNotExist: check_uuid = Instance(compute_id=comp["id"], name=vm, uuid=info['uuid']) check_uuid.save()