summaryrefslogtreecommitdiffstats
path: root/cvp/opnfv_testapi/resources/application_handlers.py
diff options
context:
space:
mode:
Diffstat (limited to 'cvp/opnfv_testapi/resources/application_handlers.py')
-rw-r--r--cvp/opnfv_testapi/resources/application_handlers.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cvp/opnfv_testapi/resources/application_handlers.py b/cvp/opnfv_testapi/resources/application_handlers.py
index 16dae4f3..6986b9ef 100644
--- a/cvp/opnfv_testapi/resources/application_handlers.py
+++ b/cvp/opnfv_testapi/resources/application_handlers.py
@@ -31,6 +31,8 @@ class GenericApplicationHandler(handlers.GenericApiHandler):
class ApplicationsCLHandler(GenericApplicationHandler):
@swagger.operation(nickname="queryApplications")
+ @web.asynchronous
+ @gen.coroutine
def get(self):
"""
@description: Retrieve result(s) for a application project
@@ -64,7 +66,8 @@ class ApplicationsCLHandler(GenericApplicationHandler):
'per_page': CONF.api_results_per_page
}
- self._list(query=self.set_query(), **limitations)
+ query = yield self.set_query()
+ yield self._list(query=query, **limitations)
logging.debug('list end')
@swagger.operation(nickname="createApplication")