Skip to content

Commit

Permalink
test: fix jinja templates in conditionals
Browse files Browse the repository at this point in the history
Conditional statements should not include jinja2 templating delimiters.
Conditional is marked as unsafe, and cannot be evaluated.
  • Loading branch information
tomjelinek authored and richm committed Dec 12, 2023
1 parent e32822c commit b1aa3db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests_sbd_all_options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
assert:
that:
- "'SBD_DELAY_START=\"2\"' in __test_sbd_config_lines"
- "'SBD_DEVICE=\"{{ __test_sbd_mount.stdout }}\"'
- "'SBD_DEVICE=\"' ~ __test_sbd_mount.stdout ~ '\"'
in __test_sbd_config_lines"
- "'SBD_STARTMODE=\"clean\"' in __test_sbd_config_lines"
- "'SBD_TIMEOUT_ACTION=\"reboot,flush\"'
Expand All @@ -142,7 +142,7 @@
- "'SBD_WATCHDOG_TIMEOUT=\"10\"' in __test_sbd_config_lines"
- >
__test_sbd_config_lines[-1]
== 'SBD_OPTS="-n {{ __ha_cluster_node_name }}"'
== 'SBD_OPTS="-n ' ~ __ha_cluster_node_name ~ '"'
- name: Check firewall and selinux state
include_tasks: tasks/check_firewall_selinux.yml
Expand Down

0 comments on commit b1aa3db

Please sign in to comment.