Fix SHA test scenario

With fixing linting in [1] we broke shatest scenario, as when splitting
a line like this, escaping for `\1` is no longer needed, as double
quotes are dropped around the statement.

[1] https://review.opendev.org/c/openstack/openstack-ansible/+/946042/3/tests/test-upstream-shas.yml

Change-Id: Iffc3a8f25777d2d1c37fdd3422db6cb2f529e35b
This commit is contained in:
Dmitriy Rabotyagov
2025-05-11 19:48:24 +00:00
parent 79580fc24e
commit 3b9948a1e3
+1 -1
View File
@@ -31,7 +31,7 @@
ansible.builtin.set_fact:
service_projects: >-
{{
hostvars[inventory_hostname] | select('match', '^([a-z_]*)_git_track_branch') | map('regex_replace', '^([a-z_]*)_git_track_branch', '\\1') | list
hostvars[inventory_hostname] | select('match', '^([a-z_]*)_git_track_branch') | map('regex_replace', '^([a-z_]*)_git_track_branch', '\1') | list
}}
- name: Clone git repos