Fix regex matching against old variable names in ma1sd validation task

This commit is contained in:
Marcel Partap 2020-04-02 17:20:06 +02:00
parent e4ceeccd14
commit 4172345d34

View File

@ -52,7 +52,7 @@
msg: >- msg: >-
Your configuration contains a variable, which now has a different name. Your configuration contains a variable, which now has a different name.
Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`). Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
when: "item.old in vars" when: "vars | dict2items | selectattr('key', 'match', item.old) | list | items2dict"
with_items: with_items:
- {'old': 'matrix_ma1sd_container_expose_port', 'new': '<superseded by matrix_ma1sd_container_http_host_bind_port>'} - {'old': 'matrix_ma1sd_container_expose_port', 'new': '<superseded by matrix_ma1sd_container_http_host_bind_port>'}
- {'old': 'matrix_mxisd_.*', 'new': 'matrix_ma1sd_.*'} - {'old': 'matrix_mxisd_.*', 'new': 'matrix_ma1sd_.*'}