summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client/Tools/POSIXUsers.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2013-09-06 11:16:32 -0500
committerSol Jerome <sol.jerome@gmail.com>2013-09-06 11:16:32 -0500
commitefa412b4dda4048b1a49143df5521eb1f7e8573f (patch)
tree5314ab8cfc1d8d03c5a42fa1cee82154b7620e7b /src/lib/Bcfg2/Client/Tools/POSIXUsers.py
parent535506260692f00b3d073d1efc73d2d565792e82 (diff)
downloadbcfg2-efa412b4dda4048b1a49143df5521eb1f7e8573f.tar.gz
bcfg2-efa412b4dda4048b1a49143df5521eb1f7e8573f.tar.bz2
bcfg2-efa412b4dda4048b1a49143df5521eb1f7e8573f.zip
POSIXUsers: Fix traceback
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2/Client/Tools/POSIXUsers.py')
-rw-r--r--src/lib/Bcfg2/Client/Tools/POSIXUsers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/POSIXUsers.py b/src/lib/Bcfg2/Client/Tools/POSIXUsers.py
index 49fc704e4..bf23aca6b 100644
--- a/src/lib/Bcfg2/Client/Tools/POSIXUsers.py
+++ b/src/lib/Bcfg2/Client/Tools/POSIXUsers.py
@@ -189,7 +189,8 @@ class POSIXUsers(Bcfg2.Client.Tools.Tool):
else:
for attr, idx in self.attr_mapping[entry.tag].items():
val = str(self.existing[entry.tag][entry.get("name")][idx])
- entry.set("current_%s" % attr, val)
+ entry.set("current_%s" %
+ attr, val.decode(self.setup['encoding']))
if attr in ["uid", "gid"]:
if entry.get(attr) is None:
# no uid/gid specified, so we let the tool