From 6dd06ce483a576ee172e0f0e89b3e5d2d93595a5 Mon Sep 17 00:00:00 2001 From: Rick Bradshow Date: Thu, 16 Oct 2008 16:05:39 +0000 Subject: 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 --- src/sbin/bcfg2-server | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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): -- cgit v1.2.3-1-g7c22