diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-09-13 15:46:04 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-09-13 15:46:04 +0000 |
commit | a2b4f01901dd4c91166379428fd669af5e07f3ec (patch) | |
tree | 51b28498d15c14a11ead96c7f445da353651bbfd /src/lib/Server/Plugins | |
parent | 6abc82965c19df63ee8531651e4275b3e62d290d (diff) | |
download | bcfg2-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.py | 2 |
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 |