Merge "Fix empty match while setting supported_policy_files"

This commit is contained in:
Zuul 2019-11-05 11:33:40 +00:00 committed by Gerrit Code Review
commit 0fe5fa831a
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# Update policy file name
- set_fact:
supported_policy_files: "{{ supported_policy_format_list | map('regex_replace', '(.*)', '{{ project_name }}_\\1') | list }}"
supported_policy_files: "{{ supported_policy_format_list | map('regex_replace', '(.+)', '{{ project_name }}_\\1') | list }}"
- name: Check if policies shall be overwritten
local_action: stat path="{{ fullpath }}"