diff options
-rw-r--r-- | src/lib/Client/Tools/POSIX.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/POSIX.py b/src/lib/Client/Tools/POSIX.py index a7c0ee4e8..be7115828 100644 --- a/src/lib/Client/Tools/POSIX.py +++ b/src/lib/Client/Tools/POSIX.py @@ -288,6 +288,9 @@ class POSIX(Bcfg2.Client.Tools.Tool): os.chown(newfile.name, pwd.getpwnam(entry.get('owner'))[2], grp.getgrnam(entry.get('group'))[2]) except KeyError: + self.logger.error("Failed to chown %s to %s:%s" % \ + (entry.get('name'), entry.get('owner'), + entry.get('group'))) os.chown(newfile.name, 0, 0) os.chmod(newfile.name, calcPerms(S_IFREG, entry.get('perms'))) os.rename(newfile.name, entry.get('name')) |