diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-06-26 15:14:43 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-06-26 15:14:43 +0000 |
commit | 97693f4aeb39f690936b6acdd75b17f064072e7d (patch) | |
tree | 20eca03d33a055d3e096c4e7df138a47cd9e5385 /src/lib/Client/Toolset.py | |
parent | 3f577fa5e13d6e58115ec4b3420e69beb094b39b (diff) | |
download | bcfg2-97693f4aeb39f690936b6acdd75b17f064072e7d.tar.gz bcfg2-97693f4aeb39f690936b6acdd75b17f064072e7d.tar.bz2 bcfg2-97693f4aeb39f690936b6acdd75b17f064072e7d.zip |
Fix traceback if user resolution fails (Resolves Ticket #67)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1895 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Toolset.py')
-rw-r--r-- | src/lib/Client/Toolset.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py index 22df3bcd4..2e5d12ed9 100644 --- a/src/lib/Client/Toolset.py +++ b/src/lib/Client/Toolset.py @@ -271,7 +271,7 @@ class Toolset(object): try: owner = pwd.getpwuid(ondisk[ST_UID])[0] group = grp.getgrgid(ondisk[ST_GID])[0] - except OSError: + except (OSError, KeyError): self.logger.error('User resolution failing') owner = 'root' group = 'root' |