Skip to content

Commit

Permalink
NR-164383 feat: fail if unexpected caps found
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenruizdegauna committed Jan 8, 2024
1 parent d01b069 commit 7716987
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@
- getcap.stdout is search(item)
loop: "{{ caps }}"

- name: fail if caps are found and were not expected
fail:
msg: "caps were not expected"
when:
- caps | length == 0 and getcap.stdout != ""

...

0 comments on commit 7716987

Please sign in to comment.