summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRick Bradshow <bradshaw@mcs.anl.gov>2008-10-16 16:05:39 +0000
committerRick Bradshow <bradshaw@mcs.anl.gov>2008-10-16 16:05:39 +0000
commit6dd06ce483a576ee172e0f0e89b3e5d2d93595a5 (patch)
tree70a5f86e7ad3db1ee4e817353c5a5ee62f83d59b /src
parentd6f5ee83a91e2bcb50d3742aa7a3e69126248d31 (diff)
downloadbcfg2-6dd06ce483a576ee172e0f0e89b3e5d2d93595a5.tar.gz
bcfg2-6dd06ce483a576ee172e0f0e89b3e5d2d93595a5.tar.bz2
bcfg2-6dd06ce483a576ee172e0f0e89b3e5d2d93595a5.zip
fix initialize issue with plugin RMI calls.
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4946 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-server12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sbin/bcfg2-server b/src/sbin/bcfg2-server
index 8fe1b82ff..c1d678a76 100755
--- a/src/sbin/bcfg2-server
+++ b/src/sbin/bcfg2-server
@@ -43,12 +43,6 @@ class Bcfg2Serv(Bcfg2.Component.Component):
if 'DBStats' in self.Core.plugins:
self.fork_funcs.append("RecvStats")
- # init functions to be exposed as XML-RPC functions
- for plugin in self.Core.plugins.values():
- for method in plugin.__rmi__:
- self.register_function(getattr(self.Core.plugins[plugin.__name__], method),
- "%s.%s" % (plugin.__name__, method))
-
famfd = self.Core.fam.fileno()
events = False
while True:
@@ -80,6 +74,12 @@ class Bcfg2Serv(Bcfg2.Component.Component):
"GetDecisionList" : self.Bcfg2GetDecisionList
})
+ # init functions to be exposed as XML-RPC functions
+ for plugin in self.Core.plugins.values():
+ for method in plugin.__rmi__:
+ self.register_function(getattr(self.Core.plugins[plugin.__name__], method),
+ "%s.%s" % (plugin.__name__, method))
+
def get_request(self):