summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2014-10-14 12:59:53 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2014-10-14 23:10:43 +0200
commit0fca20c40d9386ca2ba63b1729e2ef9265923109 (patch)
treee6c04672876ea18af8033ac1f3cb52dc07df2ae3 /src/lib/Bcfg2/Server
parent59f8f0f6e7b07527c4cf360e34c8bfac3e0ba2bb (diff)
downloadbcfg2-0fca20c40d9386ca2ba63b1729e2ef9265923109.tar.gz
bcfg2-0fca20c40d9386ca2ba63b1729e2ef9265923109.tar.bz2
bcfg2-0fca20c40d9386ca2ba63b1729e2ef9265923109.zip
InfoXML: <Path> filter should match on realpath
When using altsrc the name of real file created on the client is now in the realname attribute of the entry. The <Path> filter in the info.xml should match theses if available to set different permissions for the different files created by one template with altsrc.
Diffstat (limited to 'src/lib/Bcfg2/Server')
-rw-r--r--src/lib/Bcfg2/Server/Plugin/helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugin/helpers.py b/src/lib/Bcfg2/Server/Plugin/helpers.py
index 456038c2f..559612d1e 100644
--- a/src/lib/Bcfg2/Server/Plugin/helpers.py
+++ b/src/lib/Bcfg2/Server/Plugin/helpers.py
@@ -947,7 +947,7 @@ class InfoXML(StructFile):
_include_tests = copy.copy(StructFile._include_tests)
_include_tests['Path'] = lambda el, md, entry, *args: \
- entry.get("name") == el.get("name")
+ entry.get('realname', entry.get('name')) == el.get("name")
def Match(self, metadata, entry): # pylint: disable=W0221
""" Implementation of