Browse Source

sanitize the system_name

pull/25/head
Nicolas Massé 8 years ago
parent
commit
6dd426c4eb
  1. 2
      tasks/read_openapi_file.yml

2
tasks/read_openapi_file.yml

@ -55,7 +55,7 @@
- name: Extract the wanted system_name from OpenAPI - name: Extract the wanted system_name from OpenAPI
set_fact: set_fact:
threescale_cicd_api_system_name: '{{ threescale_cicd_openapi_file_content.info[''x-threescale-system-name''] }}' threescale_cicd_api_system_name: '{{ threescale_cicd_openapi_file_content.info[''x-threescale-system-name'']|regex_replace(''[^a-zA-Z0-9_]+'', ''_'') }}'
when: 'threescale_cicd_api_system_name is not defined and ''x-threescale-system-name'' in threescale_cicd_openapi_file_content.info' when: 'threescale_cicd_api_system_name is not defined and ''x-threescale-system-name'' in threescale_cicd_openapi_file_content.info'
- name: Generate a system_name from the API title - name: Generate a system_name from the API title

Loading…
Cancel
Save