diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-05-25 22:19:40 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-06-14 12:36:46 -0500 |
commit | be72eb8b648672707822f891a103fc75ed54dbd2 (patch) | |
tree | eef7e079d32e53caec802fef2eec9c4bea85b732 /src | |
parent | ac1e8e89733d1420afb69c8c7e96835243ffc323 (diff) | |
download | bcfg2-be72eb8b648672707822f891a103fc75ed54dbd2.tar.gz bcfg2-be72eb8b648672707822f891a103fc75ed54dbd2.tar.bz2 bcfg2-be72eb8b648672707822f891a103fc75ed54dbd2.zip |
POSIX: Clarify normalization error (Reported by Tim Goodaire)
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Client/Tools/POSIX.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/POSIX.py b/src/lib/Client/Tools/POSIX.py index af3d1a473..875db5ea7 100644 --- a/src/lib/Client/Tools/POSIX.py +++ b/src/lib/Client/Tools/POSIX.py @@ -55,7 +55,8 @@ def normGid(entry): except: return int(grp.getgrnam(entry.get('group'))[2]) except (OSError, KeyError): - log.error('GID normalization failed for %s' % (entry.get('name'))) + log.error('GID normalization failed for %s. Does group %s exist?' + % (entry.get('name'), entry.get('group'))) return False @@ -70,7 +71,8 @@ def normUid(entry): except: return int(pwd.getpwnam(entry.get('owner'))[2]) except (OSError, KeyError): - log.error('UID normalization failed for %s' % (entry.get('name'))) + log.error('UID normalization failed for %s. Does owner %s exist?' + % (entry.get('name'), entry.get('owner'))) return False |