Merge "Pattern for find module was optimized"

This commit is contained in:
Zuul 2018-09-08 13:30:21 +00:00 committed by Gerrit Code Review
commit fbd3ce2681
1 changed files with 1 additions and 6 deletions

View File

@ -113,11 +113,6 @@
recurse: no
register: found_dashboards
# NOTE(noonedeadpunk):
# patterns made not optimal, as ansible find module doesn't
# process regexp with repeats, like [0-9]{2,4}.
# Bug describing this issue:
# https://github.com/ansible/ansible/issues/45048
- name: Registering panels
find:
paths: |-
@ -128,7 +123,7 @@
{% endfor %}
{% endfor %}
{{ dashboard_path }}
patterns: "^(_[0-9]{4}_.*.py|_[0-9]{2}_.*.py|.*_policy.json)$"
patterns: ["^(_[0-9]{2,4}_.*.py|.*_policy.json)$"]
file_type: file
use_regex: yes
register: found_panels