summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-09-13 15:46:04 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-09-13 15:46:04 +0000
commita2b4f01901dd4c91166379428fd669af5e07f3ec (patch)
tree51b28498d15c14a11ead96c7f445da353651bbfd /src/lib/Server/Plugins
parent6abc82965c19df63ee8531651e4275b3e62d290d (diff)
downloadbcfg2-a2b4f01901dd4c91166379428fd669af5e07f3ec.tar.gz
bcfg2-a2b4f01901dd4c91166379428fd669af5e07f3ec.tar.bz2
bcfg2-a2b4f01901dd4c91166379428fd669af5e07f3ec.zip
add support for cascading location -> package type mappings
(Logical change 1.306) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1255 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins')
-rw-r--r--src/lib/Server/Plugins/Pkgmgr.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Pkgmgr.py b/src/lib/Server/Plugins/Pkgmgr.py
index b9fe75558..c29e02a7a 100644
--- a/src/lib/Server/Plugins/Pkgmgr.py
+++ b/src/lib/Server/Plugins/Pkgmgr.py
@@ -17,6 +17,8 @@ class PackageEntry(XMLFileBacked):
self.packages = {}
for location in self.entries:
for pkg in location.getchildren():
+ if location.attrib.has_key('type'):
+ pkg.set('type', location.get('type'))
if pkg.attrib.has_key("simplefile"):
self.packages[pkg.get('name')] = deepcopy(pkg.attrib)
# most attribs will be set from pkg