diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-08-08 02:32:43 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-08-08 02:32:43 +0000 |
commit | b63a749228b32de44aa9744927a9ac364f136bbf (patch) | |
tree | 67a2ba8f24cc34e5cb22b1055e55fd9cf103eb21 /src/lib/Server/Plugin.py | |
parent | 7371ec21031e6f074b9952a31858cd1a0d37880b (diff) | |
download | bcfg2-b63a749228b32de44aa9744927a9ac364f136bbf.tar.gz bcfg2-b63a749228b32de44aa9744927a9ac364f136bbf.tar.bz2 bcfg2-b63a749228b32de44aa9744927a9ac364f136bbf.zip |
First chunk of the Pkgmgr altsrc changes (no affect on existing setups)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3612 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugin.py')
-rw-r--r-- | src/lib/Server/Plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py index fc5221f82..e363e20f6 100644 --- a/src/lib/Server/Plugin.py +++ b/src/lib/Server/Plugin.py @@ -275,6 +275,7 @@ class INode: class XMLSrc(XMLFileBacked): '''XMLSrc files contain a LNode hierarchy that returns matching entries''' __node__ = INode + __cacheobj__ = dict def __init__(self, filename, noprio=False): XMLFileBacked.__init__(self, filename) @@ -309,7 +310,7 @@ class XMLSrc(XMLFileBacked): def Cache(self, metadata): '''Build a package dict for a given host''' if self.cache == None or self.cache[0] != metadata: - cache = (metadata, {}) + cache = (metadata, self.__cacheobj__()) if self.pnode == None: logger.error("Cache method called early for %s; forcing data load" % (self.name)) self.HandleEvent() |