From e505d10eb9e3e696c011577f6b388d35b379c0a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Thu, 26 Apr 2018 09:49:43 +0200 Subject: [PATCH] Convert the swagger version to string --- tasks/create_activedocs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/create_activedocs.yml b/tasks/create_activedocs.yml index 88650e3..d6a8abd 100644 --- a/tasks/create_activedocs.yml +++ b/tasks/create_activedocs.yml @@ -38,6 +38,10 @@ set_fact: threescale_cicd_openapi_rewritten: '{{ threescale_cicd_openapi_rewritten|combine({ ''host'': threescale_cicd_apicast_production_hostname }) }}' +- name: Rewrite the Swagger file (swagger version as string) + set_fact: + threescale_cicd_openapi_rewritten: '{{ threescale_cicd_openapi_rewritten|combine({ ''swagger'': threescale_cicd_openapi_rewritten.swagger ~ "" }) }}' + - name: Add the RH-SSO endpoints to the OpenAPI securityDefinitions set_fact: threescale_cicd_api_security_definitions: '{{ threescale_cicd_api_security_definitions|combine({ threescale_cicd_api_security_scheme_name: (threescale_cicd_api_security_definitions[threescale_cicd_api_security_scheme_name]|combine({ ''authorizationUrl'': threescale_cicd_sso_realm_endpoint ~ ''/protocol/openid-connect/auth'', ''tokenUrl'': threescale_cicd_sso_realm_endpoint ~ ''/protocol/openid-connect/token'' })) }) }}'