Skip to content

Commit

Permalink
Fix "no-changed-when" violations.
Browse files Browse the repository at this point in the history
Adding the missing "changed_when" conditional.
Fixing 5 violations:
  no-changed-when: Commands should not change things if nothing needs doing.

Signed-off-by: Pavel Bar <[email protected]>
Bug-Url: https://bugzilla.redhat.com/2097332
  • Loading branch information
barpavel committed Jul 3, 2022
1 parent e4a2667 commit 23344c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automation/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ cd "$COLLECTION_DIR"
ansible-test sanity
antsibull-changelog lint -v
ansible-lint roles/* --exclude roles/hosted_engine_setup --exclude roles/disaster_recovery --exclude roles/remove_stale_lun -x experimental
ansible-lint -x no-changed-when,ignore-errors roles/disaster_recovery roles/remove_stale_lun
ansible-lint -x ignore-errors roles/disaster_recovery roles/remove_stale_lun

cd "$ROOT_PATH"

Expand Down

0 comments on commit 23344c7

Please sign in to comment.