Skip to content

Commit d233f95

Browse files
committed
fix condition in first assert
1 parent 53e2497 commit d233f95

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/integration/targets/mount/tasks/swapfile_linux.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@
3636
- name: Assert that swapfile is not already set
3737
assert:
3838
that:
39-
- swap_relevant_line | length == 0
40-
vars:
41-
swap_relevant_line: swap_info_0.stdout_lines | select('match', swapfile) | list | join
39+
- swap_info_0.stdout | length == 0
4240

4341

4442
- name: Enable swap file with priority 1234

0 commit comments

Comments
 (0)