From d40c11b22a35a1677f763504ef89c2f36ebefee7 Mon Sep 17 00:00:00 2001 From: jacky06 Date: Sun, 17 May 2020 19:49:58 +0800 Subject: [PATCH] Modify api-paste.ini v1 to v2 for cyborg bump api version to v2[1] [1]: https://review.opendev.org/#/c/700102/ Change-Id: I799f126a30081a85da4f3c41ce705c3756bbe6ba --- ansible/roles/cyborg/templates/cyborg-api-paste.ini.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/roles/cyborg/templates/cyborg-api-paste.ini.j2 b/ansible/roles/cyborg/templates/cyborg-api-paste.ini.j2 index 7717f95879..a8eb264c10 100644 --- a/ansible/roles/cyborg/templates/cyborg-api-paste.ini.j2 +++ b/ansible/roles/cyborg/templates/cyborg-api-paste.ini.j2 @@ -1,11 +1,11 @@ [pipeline:main] -pipeline = cors request_id authtoken api_v1 +pipeline = cors request_id authtoken api_v2 -[app:api_v1] +[app:api_v2] paste.app_factory = cyborg.api.app:app_factory [filter:authtoken] -acl_public_routes = /, /v1 +acl_public_routes = /, /v2 paste.filter_factory = cyborg.api.middleware.auth_token:AuthTokenMiddleware.factory [filter:osprofiler]