diff --git a/confluent_osdeploy/el8-diskless/profiles/default/scripts/syncfileclient b/confluent_osdeploy/el8-diskless/profiles/default/scripts/syncfileclient index 5f2efc5e..beaa3216 100644 --- a/confluent_osdeploy/el8-diskless/profiles/default/scripts/syncfileclient +++ b/confluent_osdeploy/el8-diskless/profiles/default/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