diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-16 08:15:43 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-16 08:15:43 -0400 |
commit | c77db2f604a5f0eb35aae7b3aa3d0f6bd1df543c (patch) | |
tree | 2593a005701968677522fa6e1ea2d4b2e8fee430 /src/lib/Bcfg2/Client/Tools | |
parent | 488399e562f81b0835b3d03eda0c9f61744942d9 (diff) | |
download | bcfg2-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.py | 3 |
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 |