From 5debba78ae327d782b5438ecb978446166085c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Thu, 21 Jun 2018 16:51:01 +0200 Subject: [PATCH] fix a typo in the variable name --- tasks/read_openapi_file.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/read_openapi_file.yml b/tasks/read_openapi_file.yml index 75efc49..3fe784f 100644 --- a/tasks/read_openapi_file.yml +++ b/tasks/read_openapi_file.yml @@ -68,7 +68,7 @@ - name: Compute the system_name prefix to prepend to the generated system_name set_fact: - threescale_cicd_api_system_name_prefix: '{{ (threescale_cicd_api_system_name is not defined and threescale_cicd_env is defined)|ternary((threescale_cicd_env|default("")|regex_replace(''[^a-zA-Z0-9_]+'', ''_'')) ~ "_", "") }}' + threescale_cicd_api_system_name_prefix: '{{ (threescale_cicd_api_system_name is not defined and threescale_cicd_api_environment_name is defined)|ternary((threescale_cicd_api_environment_name|default("")|regex_replace(''[^a-zA-Z0-9_]+'', ''_'')) ~ "_", "") }}' - name: Extract the wanted system_name from OpenAPI set_fact: @@ -97,12 +97,12 @@ - name: Append the full version to the API title set_fact: threescale_cicd_api_name: '{{ threescale_cicd_api_name }} (v{{ threescale_cicd_api_version }})' - when: 'threescale_cicd_env is not defined' + when: 'threescale_cicd_api_environment_name is not defined' - name: Append the full version and the environment to the API title set_fact: - threescale_cicd_api_name: '{{ threescale_cicd_api_name }} ({{ threescale_cicd_env|upper }}, v{{ threescale_cicd_api_version }})' - when: 'threescale_cicd_env is defined' + threescale_cicd_api_name: '{{ threescale_cicd_api_name }} ({{ threescale_cicd_api_environment_name|upper }}, v{{ threescale_cicd_api_version }})' + when: 'threescale_cicd_api_environment_name is defined' - name: Extract the security definitions and requirements from OpenAPI set_fact: