Skip to content

Commit

Permalink
Merge pull request linux-system-roles#30 from pcahyna/no-bare-variable
Browse files Browse the repository at this point in the history
Avoid bare variable in when and the resulting warning.

Protect against undefined type attribute in the kdump_target dict.
  • Loading branch information
pcahyna authored May 5, 2021
2 parents 19de493 + 00641e4 commit 8243bd4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@

- include_tasks: ssh.yml
when:
- kdump_target
- kdump_target.type == "ssh"
- kdump_target.type | d(none) == 'ssh'

- name: Get mode of /etc/kdump.conf if it exists
stat:
Expand Down

0 comments on commit 8243bd4

Please sign in to comment.