summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--func/minion/modules/mount.py3
-rwxr-xr-xfunc/minion/server.py1
-rwxr-xr-xfunc/overlord/inventory.py5
3 files changed, 8 insertions, 1 deletions
diff --git a/func/minion/modules/mount.py b/func/minion/modules/mount.py
index e0cbe75..d29ba9d 100644
--- a/func/minion/modules/mount.py
+++ b/func/minion/modules/mount.py
@@ -24,6 +24,7 @@ class MountModule(func_module.FuncModule):
"list": self.list,
"mount": self.mount,
"umount": self.umount
+ "inventory": self.inventory,
}
func_module.FuncModule.__init__(self)
@@ -80,7 +81,7 @@ class MountModule(func_module.FuncModule):
else:
return False
- def inventory():
+ def inventory(self):
cmd = sub_process.Popen(["/bin/mount"], stdout=sub_process.PIPE, shell=False)
output = cmd.communicate()[0]
lines = output.split("\n")
diff --git a/func/minion/server.py b/func/minion/server.py
index 3ef7786..ef9e112 100755
--- a/func/minion/server.py
+++ b/func/minion/server.py
@@ -78,6 +78,7 @@ class XmlRpcInterface(object):
# system.listMethods os a quasi stanard xmlrpc method, so
# thats why it has a odd looking name
self.handlers["system.listMethods"] = self.list_methods
+ self.handlers["system.list_methods"] = self.list_methods
self.handlers["system.list_modules"] = self.list_modules
def list_modules(self):
diff --git a/func/overlord/inventory.py b/func/overlord/inventory.py
index 8bb5942..28a269e 100755
--- a/func/overlord/inventory.py
+++ b/func/overlord/inventory.py
@@ -98,7 +98,12 @@ class FuncInventory(object):
if options.verbose:
print "---- scanning module: %s" % module_name
host_module = getattr(func_client.Client(host,noglobs=True),module_name)
+ if options.verbose:
+ print "--- DEBUG: remote module: %s" % host_module
+
remote_methods = host_module.list_methods()
+ if options.verbose:
+ print "--- DEBUG: available remote methods: %s" % remote_methods
for remote_method in remote_methods:
if ("all" in filtered_function_list) or (remote_method in filtered_function_list):
if options.verbose: