Skip to content

Commit

Permalink
Cast 'when' conditions to bool
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Megginson <[email protected]>
  • Loading branch information
TheMysteriousX and richm committed Jul 1, 2024
1 parent 6868db5 commit 744cd4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/main-clevis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
dest: /etc/dracut.conf.d/nbde_client.conf
owner: root
mode: '0444'
when: nbde_client_early_boot
when: nbde_client_early_boot | bool

- name: Check whether devices are at the desired state
when:
Expand Down Expand Up @@ -85,6 +85,6 @@
include_tasks: clear_initrd_netcfg-{{ __nbde_client_clear_initrd_netcfg_strategy }}.yml
when:
- __nbde_client_clear_initrd_netcfg_strategy is defined
- nbde_client_early_boot
- nbde_client_early_boot | bool

# vim:set ts=2 sw=2 et:

0 comments on commit 744cd4d

Please sign in to comment.