fix project|use|role-list error 95/9595/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 14 Aug 2020 14:25:32 +0000 (14:25 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 14 Aug 2020 14:45:50 +0000 (14:45 +0000)
it was introduced at commit 2fbb1c6 gerrit 9565

Change-Id: I18826b31f569a9fb34444a3610cc4be96f475c87
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_nbi/admin_topics.py

index 6e9f078..7e71459 100644 (file)
@@ -812,7 +812,7 @@ class UserTopicAuth(UserTopic):
         except ValidationError as e:
             raise EngineException(e, HTTPStatus.UNPROCESSABLE_ENTITY)
 
         except ValidationError as e:
             raise EngineException(e, HTTPStatus.UNPROCESSABLE_ENTITY)
 
-    def list(self, session, filter_q=None):
+    def list(self, session, filter_q=None, api_req=False):
         """
         Get a list of the topic that matches a filter
         :param session: contains "username", "admin", "force", "public", "project_id", "set_project"
         """
         Get a list of the topic that matches a filter
         :param session: contains "username", "admin", "force", "public", "project_id", "set_project"
@@ -982,7 +982,7 @@ class ProjectTopicAuth(ProjectTopic):
         else:
             raise EngineException("Project not found", HTTPStatus.NOT_FOUND)
 
         else:
             raise EngineException("Project not found", HTTPStatus.NOT_FOUND)
 
-    def list(self, session, filter_q=None):
+    def list(self, session, filter_q=None, api_req=False):
         """
         Get a list of the topic that matches a filter
 
         """
         Get a list of the topic that matches a filter
 
@@ -1248,7 +1248,7 @@ class RoleTopicAuth(BaseTopic):
             raise AuthconnConflictException("Found more than one role with filter {}".format(filter_q))
         return roles[0]
 
             raise AuthconnConflictException("Found more than one role with filter {}".format(filter_q))
         return roles[0]
 
-    def list(self, session, filter_q=None):
+    def list(self, session, filter_q=None, api_req=False):
         """
         Get a list of the topic that matches a filter
 
         """
         Get a list of the topic that matches a filter