diff options
author | Justin Choquette <jchoquette@iol.unh.edu> | 2023-10-23 16:24:13 -0400 |
---|---|---|
committer | Justin Choquette <jchoquette@iol.unh.edu> | 2023-10-25 16:26:17 -0400 |
commit | a4ba880252b2bad72df3f16dd11fdf2206825335 (patch) | |
tree | 3d2852284728814ba546ae2719f47fe641b0f544 /src/resource_inventory/views.py | |
parent | aff53e072502d63d8002d9c83213ce7f9d12c352 (diff) |
Single Template Selection For Compatible Dashboardsliblaas-mvp
Change-Id: I0a795c2c49fdbe0427182a8789d622003997efcd
Signed-off-by: Justin Choquette <jchoquette@iol.unh.edu>
Diffstat (limited to 'src/resource_inventory/views.py')
-rw-r--r-- | src/resource_inventory/views.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/resource_inventory/views.py b/src/resource_inventory/views.py index b9e3490..e23326b 100644 --- a/src/resource_inventory/views.py +++ b/src/resource_inventory/views.py @@ -11,17 +11,16 @@ import json import os from django.shortcuts import render from django.http import HttpResponse +from laas_dashboard.settings import PROJECT from liblaas.views import flavor_list_hosts, flavor_list_flavors -origin = "anuket" if os.environ.get("TEMPLATE_OVERRIDE_DIR") == 'laas' else "lfedge" - def host_list_view(request): if request.method != "GET": return HttpResponse(status=405) - host_list = flavor_list_hosts(origin) - flavor_list = flavor_list_flavors(origin) + host_list = flavor_list_hosts(PROJECT) + flavor_list = flavor_list_flavors(PROJECT) flavor_map = {} for flavor in flavor_list: @@ -46,7 +45,7 @@ def profile_view(request, resource_id): if request.method != "GET": return HttpResponse(status=405) - flavor_list = flavor_list_flavors(origin) + flavor_list = flavor_list_flavors(PROJECT) selected_flavor = {} for flavor in flavor_list: if flavor["flavor_id"] == resource_id: |