From 506fbaa9a5a20ecb58ba87b6915765bcf76668e6 Mon Sep 17 00:00:00 2001 From: James Slagle Date: Mon, 9 Sep 2024 12:41:51 -0400 Subject: [PATCH] Check for AnsibleUnicode or str for edpm_kernel_args 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 --- roles/edpm_kernel/tasks/kernelargs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/edpm_kernel/tasks/kernelargs.yml b/roles/edpm_kernel/tasks/kernelargs.yml index dde0ca81c..39f48e654 100644 --- a/roles/edpm_kernel/tasks/kernelargs.yml +++ b/roles/edpm_kernel/tasks/kernelargs.yml @@ -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