Back to bug 2232391

Who When What Removed Added
Red Hat Bugzilla 2023-08-16 16:03:06 UTC Pool ID sst_system_roles_rhel_8
Rich Megginson 2023-08-16 17:37:16 UTC Doc Type If docs needed, set a value Bug Fix
Doc Text Cause: The new key content had an extra newline at the end.

Consequence: The test to see if the new key content was in the
current authorized_key list failed, so the key was added every
time, and the task was not idempotent.

Fix: Ensure the new key value has no extra newline. Use a simple
list `in` test to see if the new value is in the existing list.

Result: The task to write authorized_keys is idempotent.
Flags needinfo?(djez) needinfo?(jharuda) needinfo?(vdanek)
Status NEW POST
Target Release --- 8.9
Red Hat One Jira (issues.redhat.com) 2023-08-16 17:38:03 UTC Link ID Red Hat Issue Tracker RHELPLAN-165917

Back to bug 2232391