diff options
author | Luke Macken <lmacken@redhat.com> | 2008-01-15 18:12:35 -0500 |
---|---|---|
committer | Luke Macken <lmacken@redhat.com> | 2008-01-15 18:12:35 -0500 |
commit | a433b0073efcbeb2028dceed5105cc40f5936ddf (patch) | |
tree | 5b19642eceb8dfbc0f71c1cf93e2cb396d1453a2 /func/minion/modules | |
parent | 5d7f93adae47ae2aa137f3f44fb077ed26ed9012 (diff) | |
download | func-a433b0073efcbeb2028dceed5105cc40f5936ddf.tar.gz func-a433b0073efcbeb2028dceed5105cc40f5936ddf.tar.xz func-a433b0073efcbeb2028dceed5105cc40f5936ddf.zip |
Don't expose FuncModule.register_rpc
Diffstat (limited to 'func/minion/modules')
-rw-r--r-- | func/minion/modules/func_module.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/func/minion/modules/func_module.py b/func/minion/modules/func_module.py index c911b91..99758f9 100644 --- a/func/minion/modules/func_module.py +++ b/func/minion/modules/func_module.py @@ -49,7 +49,8 @@ class FuncModule(object): # register all methods that don't start with an underscore for attr in dir(self): - if inspect.ismethod(getattr(self, attr)) and attr[0] != '_': + if inspect.ismethod(getattr(self, attr)) and attr[0] != '_' and \ + attr != 'register_rpc': handlers["%s.%s" % (module_name, attr)] = getattr(self, attr) def __list_methods(self): |