fix bug 973 03/8403/1 sol006
authorlombardofr <lombardo@everyup.it>
Mon, 16 Dec 2019 14:03:48 +0000 (15:03 +0100)
committerlombardofr <lombardo@everyup.it>
Mon, 16 Dec 2019 14:03:48 +0000 (15:03 +0100)
Change-Id: I5207b7a5e00cd396617da9d478962eea248e2dcc
Signed-off-by: lombardofr <lombardo@everyup.it>
instancehandler/urls.py
instancehandler/views.py

index e68f5ce..ad4d509 100644 (file)
@@ -18,7 +18,7 @@ from django.conf.urls import url
 from instancehandler import views
 
 urlpatterns = [
-    url(r'^(?P<type>[ns|vnf|pdu|nsi]+)/list/', views.list, name='list'),
+    url(r'^(?P<type>[ns|vnf|pdu|nsi]+)/list/', views.get_list, name='list'),
     url(r'^(?P<type>[ns|pdu|nsi]+)/create/', views.create, name='create'),
     url(r'^(?P<type>[ns|pdu|nsi]+)/(?P<instance_id>[0-9a-z-]+)/delete$', views.delete, name='delete'),
     url(r'^(?P<type>[ns|vnf]+)/(?P<instance_id>[0-9a-z-]+)/topology', views.show_topology, name='show_topology'),
index cf88f99..64b5fd6 100644 (file)
@@ -29,7 +29,7 @@ log = logging.getLogger('instancehandler/view.py')
 
 
 @login_required
-def list(request, type=None):
+def get_list(request, type=None):
     user = osmutils.get_user(request)
     project_id = user.project_id
     client = Client()