summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-09-26 20:31:42 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-09-26 20:31:42 +0000
commit5223ec6eedd1ba50843ec167a318c4217624cf48 (patch)
treedc97a7f18f2100e464c95afe214eb699870fbf28 /src/lib/Server/Plugins
parent16be5d99e87e106979cf0ba4b3cb78a91cf5cfa0 (diff)
downloadbcfg2-5223ec6eedd1ba50843ec167a318c4217624cf48.tar.gz
bcfg2-5223ec6eedd1ba50843ec167a318c4217624cf48.tar.bz2
bcfg2-5223ec6eedd1ba50843ec167a318c4217624cf48.zip
POSIX: Add support for nonexistent Path entry types
Allow specification of Path entries which should not exist on the client. This gives the user the ability to explicitly remove Path entries if they exist on the client. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5464 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins')
-rw-r--r--src/lib/Server/Plugins/POSIXCompat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/POSIXCompat.py b/src/lib/Server/Plugins/POSIXCompat.py
index 9964bf1f5..00fdbf65c 100644
--- a/src/lib/Server/Plugins/POSIXCompat.py
+++ b/src/lib/Server/Plugins/POSIXCompat.py
@@ -27,7 +27,7 @@ class POSIXCompat(Bcfg2.Server.Plugin.Plugin,
def validate_goals(self, metadata, goals):
for goal in goals:
for entry in goal.getchildren():
- if entry.tag == 'Path':
+ if entry.tag == 'Path' and entry.get('type') != 'nonexistent':
oldentry = entry
entry.tag = entry.get('type')
del entry.attrib['type']