diff options
author | Adrian Likins <alikins@redhat.com> | 2007-09-27 13:47:50 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2007-09-27 13:47:50 -0400 |
commit | 064afab85ea8ce7df11ad0e4b92eab8b431c90e3 (patch) | |
tree | db5281c14ece624553b8d8061dfa07f941a8a881 /modules | |
parent | 72f973619e507a240359ed87c6f3597ed8bf22b4 (diff) | |
download | third_party-func-064afab85ea8ce7df11ad0e4b92eab8b431c90e3.tar.gz third_party-func-064afab85ea8ce7df11ad0e4b92eab8b431c90e3.tar.xz third_party-func-064afab85ea8ce7df11ad0e4b92eab8b431c90e3.zip |
move logger and config_data to func/func
update modules that need new location
modules/func_module.py: update to use new logger/config locations,
also go ahead and register as a real module, to shut up the
start up. It shouldn't hurt anything
Some minor import reordering at a couple places (I try to keep
at least system import alphabetical)
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/func_module.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/func_module.py b/modules/func_module.py index 83eb6fc..ae8bb11 100755 --- a/modules/func_module.py +++ b/modules/func_module.py @@ -13,8 +13,8 @@ ## -from func.minion import config_data -from func.minion import logger +from func import config_data +from func import logger class FuncModule(object): @@ -49,6 +49,9 @@ class FuncModule(object): for meth in self.methods: handlers["%s.%s" % (module_name,meth)] = self.methods[meth] +# def list_methods(self): +# return self.methods.keys() + self.__base_methods.keys() + def __module_version(self): return self.version @@ -58,3 +61,6 @@ class FuncModule(object): def __module_description(self): return self.description + +methods = FuncModule() +register_rpc = methods.register_rpc |