summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugin/interfaces.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2014-02-23 15:55:03 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2014-02-23 15:55:03 -0500
commitc6a1de59fbd49b3e1b24a7fb4e55f109e8a54e2e (patch)
treefcc93e1acc9b13c02366ac8e1b383f632e3a6799 /src/lib/Bcfg2/Server/Plugin/interfaces.py
parent9d12865d7598544bbbe2bb4b40c085c101b3d42e (diff)
downloadbcfg2-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/Plugin/interfaces.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugin/interfaces.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Plugin/interfaces.py b/src/lib/Bcfg2/Server/Plugin/interfaces.py
index 33f6d338c..07717a710 100644
--- a/src/lib/Bcfg2/Server/Plugin/interfaces.py
+++ b/src/lib/Bcfg2/Server/Plugin/interfaces.py
@@ -213,6 +213,10 @@ class Metadata(object):
"""
raise NotImplementedError
+ def update_client_list(self):
+ """ Re-read the cached list of clients """
+ raise NotImplementedError
+
class Connector(object):
""" Connector plugins augment client metadata instances with