diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2014-02-23 15:55:03 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2014-02-23 15:55:03 -0500 |
commit | c6a1de59fbd49b3e1b24a7fb4e55f109e8a54e2e (patch) | |
tree | fcc93e1acc9b13c02366ac8e1b383f632e3a6799 /src/lib/Bcfg2/Server/MultiprocessingCore.py | |
parent | 9d12865d7598544bbbe2bb4b40c085c101b3d42e (diff) | |
download | bcfg2-c6a1de59fbd49b3e1b24a7fb4e55f109e8a54e2e.tar.gz bcfg2-c6a1de59fbd49b3e1b24a7fb4e55f109e8a54e2e.tar.bz2 bcfg2-c6a1de59fbd49b3e1b24a7fb4e55f109e8a54e2e.zip |
Metadata: reread client list from database
This fixes two related bugs: One causes Metadata to use an out-of-date
cached list of clients when a client is deleted or added with
bcfg2-admin; the other causes child worker processes to use an
out-of-date cached list of clients when a client is added with a Bcfg2
run when the multiprocessing core is in use.
Diffstat (limited to 'src/lib/Bcfg2/Server/MultiprocessingCore.py')
-rw-r--r-- | src/lib/Bcfg2/Server/MultiprocessingCore.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/MultiprocessingCore.py b/src/lib/Bcfg2/Server/MultiprocessingCore.py index 6d41bbcbb..2cb3adae3 100644 --- a/src/lib/Bcfg2/Server/MultiprocessingCore.py +++ b/src/lib/Bcfg2/Server/MultiprocessingCore.py @@ -303,6 +303,7 @@ class ChildCore(BaseCore): @exposed def GetConfig(self, client): """ Render the configuration for a client """ + self.metadata.update_client_list() self.logger.debug("%s: Building configuration for %s" % (self.name, client)) return lxml.etree.tostring(self.BuildConfiguration(client)) |