fix...
This commit is contained in:
parent
ac0c884c39
commit
c6f174dd55
2 changed files with 2 additions and 2 deletions
|
|
@ -400,7 +400,7 @@ Unowned /etc config files not attributed to packages or services.
|
||||||
state: started
|
state: started
|
||||||
when:
|
when:
|
||||||
- _unit_probe is succeeded
|
- _unit_probe is succeeded
|
||||||
- {{ var_prefix }}_start | bool
|
- {var_prefix}_start | bool
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ def test_manifest_writes_roles_and_playbook_with_clean_when(tmp_path: Path):
|
||||||
|
|
||||||
# Service role: conditional start must be a clean Ansible expression
|
# Service role: conditional start must be a clean Ansible expression
|
||||||
tasks = (out / "roles" / "foo" / "tasks" / "main.yml").read_text(encoding="utf-8")
|
tasks = (out / "roles" / "foo" / "tasks" / "main.yml").read_text(encoding="utf-8")
|
||||||
assert "when:\n - _unit_probe is succeeded\n - { var_prefix }_start | bool\n" in tasks
|
assert "when:\n - _unit_probe is succeeded\n - foo_start | bool\n" in tasks
|
||||||
# Ensure we didn't emit deprecated/broken '{{ }}' delimiters in when:
|
# Ensure we didn't emit deprecated/broken '{{ }}' delimiters in when:
|
||||||
for line in tasks.splitlines():
|
for line in tasks.splitlines():
|
||||||
if line.lstrip().startswith("when:"):
|
if line.lstrip().startswith("when:"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue