From e213949bf0da6df8505bb9fb4630d817871ff4de Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 3 Aug 2026 08:49:55 -0400 Subject: [PATCH] Bring fix in from el8-diskless edition of syncfileclient --- confluent_osdeploy/common/profile/scripts/syncfileclient | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/confluent_osdeploy/common/profile/scripts/syncfileclient b/confluent_osdeploy/common/profile/scripts/syncfileclient index 5f2efc5e..beaa3216 100644 --- a/confluent_osdeploy/common/profile/scripts/syncfileclient +++ b/confluent_osdeploy/common/profile/scripts/syncfileclient @@ -277,7 +277,10 @@ def synchronize(): try: uid = pwd.getpwnam(opts[fname][opt]['name']).pw_uid except KeyError: - uid = opts[fname][opt]['id'] + try: + uid = opts[fname][opt]['id'] + except KeyError: + raise Exception(f"Unable to map owner of {fname}") elif opt == 'group': try: gid = grp.getgrnam(opts[fname][opt]['name']).gr_gid