diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-12-17 12:18:45 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-12-17 12:18:45 -0500 |
commit | 9806fbbebb7d9e28cc58ab5388ad646ffbf7ebb6 (patch) | |
tree | 82ef2ab118e367048eaa5fde851acdb14713c7a6 /func/minion/modules/mount.py | |
parent | 0dfe68bf49ba03d3fb46bc6d6d87f4085db0d18b (diff) | |
download | third_party-func-9806fbbebb7d9e28cc58ab5388ad646ffbf7ebb6.tar.gz third_party-func-9806fbbebb7d9e28cc58ab5388ad646ffbf7ebb6.tar.xz third_party-func-9806fbbebb7d9e28cc58ab5388ad646ffbf7ebb6.zip |
Added inventory module for mount, though something has broken func-inventory's ability to query remote modules and I am still chasing what that is.
Diffstat (limited to 'func/minion/modules/mount.py')
-rw-r--r-- | func/minion/modules/mount.py | 3 |
1 files changed, 2 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") |