diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2010-03-22 21:35:26 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-03-22 20:24:54 -0500 |
commit | 92906fdae89f11ebaa9a5cb32e3747b2a68262c8 (patch) | |
tree | 483dacef7907c34398407f9b78e7adda6af58007 /src | |
parent | 030325e0ffc3ab6748b8dc258a9e5a39e055feed (diff) | |
download | bcfg2-92906fdae89f11ebaa9a5cb32e3747b2a68262c8.tar.gz bcfg2-92906fdae89f11ebaa9a5cb32e3747b2a68262c8.tar.bz2 bcfg2-92906fdae89f11ebaa9a5cb32e3747b2a68262c8.zip |
POSIX: Add support to properly verify new POSIX entries (directories)
Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5787 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Client/Tools/POSIX.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/POSIX.py b/src/lib/Client/Tools/POSIX.py index cd643971f..457ca7edd 100644 --- a/src/lib/Client/Tools/POSIX.py +++ b/src/lib/Client/Tools/POSIX.py @@ -199,7 +199,8 @@ class POSIX(Bcfg2.Client.Tools.Tool): pruneTrue = True ex_ents = [] if entry.get('prune', 'false') == 'true' \ - and entry.tag == 'Directory': + and (entry.tag == 'Directory' or entry.get('type') == 'directory'): + # FIXME: need to verify both old and new POSIX types try: entries = ['/'.join([entry.get('name'), ent]) \ for ent in os.listdir(entry.get('name'))] |