Back to bug 2232392

Who When What Removed Added
Red Hat Bugzilla 2023-08-16 16:04:22 UTC Pool ID sst_system_roles_rhel_8
Rich Megginson 2023-08-16 17:38:56 UTC Doc Text Cause: The evaluation of `__kdump_authorized_keys is defined` was happening
after the evaluation of `(__kdump_authorized_keys.content ...)`. I guess
the parentheses cause the evaluation to happen first, regardless of the
`if` conditional.

Consequence: If authorized_keys were not found, the role would attempt to
evaluate the undefined `__kdump_authorized_keys` and fail.

Fix: Use the `defined` filter `d` with `__kdump_authorized_keys` to define
the value as an empty line, and omit the `if` clause.

Result: The role does not fail if authorized_keys are missing.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Flags needinfo?(djez) needinfo?(jharuda) needinfo?(vdanek)
Doc Type If docs needed, set a value Bug Fix
Status NEW POST
Target Release --- 8.9
CC jharuda, vdanek
Red Hat One Jira (issues.redhat.com) 2023-08-16 17:41:44 UTC Link ID Red Hat Issue Tracker RHELPLAN-165931

Back to bug 2232392