summaryrefslogtreecommitdiffstats
path: root/func/minion/modules/mount.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-12-17 13:23:49 -0500
committerMichael DeHaan <mdehaan@redhat.com>2007-12-17 13:23:49 -0500
commit3b4404180d0a12741ba53a5213788cd36ed526b4 (patch)
treeeb2c3600b5c354f7c8e966f80ae52628424a988c /func/minion/modules/mount.py
parent2663a98f20d95382b6a818a843c40472edd400c4 (diff)
downloadthird_party-func-3b4404180d0a12741ba53a5213788cd36ed526b4.tar.gz
third_party-func-3b4404180d0a12741ba53a5213788cd36ed526b4.tar.xz
third_party-func-3b4404180d0a12741ba53a5213788cd36ed526b4.zip
Fix inventory call for mount.
Diffstat (limited to 'func/minion/modules/mount.py')
-rw-r--r--func/minion/modules/mount.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/func/minion/modules/mount.py b/func/minion/modules/mount.py
index d29ba9d..2ca15fe 100644
--- a/func/minion/modules/mount.py
+++ b/func/minion/modules/mount.py
@@ -23,7 +23,7 @@ class MountModule(func_module.FuncModule):
self.methods = {
"list": self.list,
"mount": self.mount,
- "umount": self.umount
+ "umount": self.umount,
"inventory": self.inventory,
}
func_module.FuncModule.__init__(self)
@@ -81,7 +81,7 @@ class MountModule(func_module.FuncModule):
else:
return False
- def inventory(self):
+ def inventory(self, flatten=True):
cmd = sub_process.Popen(["/bin/mount"], stdout=sub_process.PIPE, shell=False)
output = cmd.communicate()[0]
lines = output.split("\n")