Skip to content

Commit

Permalink
Check for AnsibleUnicode or str for edpm_kernel_args
Browse files Browse the repository at this point in the history
The type of edpm_kernel_args could be a str, so both types need to be
checked, otherwise the whole block is skipped.

Jira: OSPRH-10007
Signed-off-by: James Slagle <[email protected]>
  • Loading branch information
slagle committed Sep 9, 2024
1 parent 300cbb8 commit 506fbaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/edpm_kernel/tasks/kernelargs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
when:
- cmdline is defined
- edpm_kernel_args is defined
- edpm_kernel_args | type_debug == "AnsibleUnicode"
- edpm_kernel_args | type_debug in ["AnsibleUnicode", "str"]
- cmdline is not regex( '^.*' ~ edpm_kernel_args ~ '\\s.*$' )
block:
# Leapp does not recognise grun entries starting other than GRUB
Expand Down

0 comments on commit 506fbaa

Please sign in to comment.