summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client/Tools
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-16 08:15:43 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-16 08:15:43 -0400
commitc77db2f604a5f0eb35aae7b3aa3d0f6bd1df543c (patch)
tree2593a005701968677522fa6e1ea2d4b2e8fee430 /src/lib/Bcfg2/Client/Tools
parent488399e562f81b0835b3d03eda0c9f61744942d9 (diff)
downloadbcfg2-c77db2f604a5f0eb35aae7b3aa3d0f6bd1df543c.tar.gz
bcfg2-c77db2f604a5f0eb35aae7b3aa3d0f6bd1df543c.tar.bz2
bcfg2-c77db2f604a5f0eb35aae7b3aa3d0f6bd1df543c.zip
fix _verify_metadata() when selinux libs not installed
Diffstat (limited to 'src/lib/Bcfg2/Client/Tools')
-rw-r--r--src/lib/Bcfg2/Client/Tools/POSIX/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/POSIX/base.py b/src/lib/Bcfg2/Client/Tools/POSIX/base.py
index 1ec1d36d5..fe30d1a74 100644
--- a/src/lib/Bcfg2/Client/Tools/POSIX/base.py
+++ b/src/lib/Bcfg2/Client/Tools/POSIX/base.py
@@ -489,7 +489,8 @@ class POSIXTool(Bcfg2.Client.Tools.Tool):
entry.set('qtext', "\n".join([entry.get('qtext', '')] + errors))
if path == entry.get("name"):
for attr, val in attrib.items():
- entry.set(attr, val)
+ if val is not None:
+ entry.set(attr, str(val))
aclVerifies = self._verify_acls(entry, path=path)
return aclVerifies and len(errors) == 0