summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authorSteve 'Ashcrow' Milner <stevem@gnulinux.net>2008-01-13 14:12:30 -0500
committerSteve 'Ashcrow' Milner <stevem@gnulinux.net>2008-01-13 14:12:30 -0500
commit63170952d465a8acf8355e7b346733e4f6ddcace (patch)
tree8aa8d13ac00c89dc18c8dd9090b619facbf679af /func
parent5d5aba57547471d9b4f9b66cd36e4b3799744c4d (diff)
parent71fb48d2be9eb87067494ed11451f2ca68a67ba0 (diff)
downloadfunc-63170952d465a8acf8355e7b346733e4f6ddcace.tar.gz
func-63170952d465a8acf8355e7b346733e4f6ddcace.tar.xz
func-63170952d465a8acf8355e7b346733e4f6ddcace.zip
Merge branch 'master' of ssh://smilner@git.fedorahosted.org/git/func
Diffstat (limited to 'func')
-rw-r--r--func/minion/modules/mount.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/func/minion/modules/mount.py b/func/minion/modules/mount.py
index 02463e4..01e4eab 100644
--- a/func/minion/modules/mount.py
+++ b/func/minion/modules/mount.py
@@ -14,7 +14,7 @@
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
##
-import sub_process, os.path
+import sub_process, os
from modules import func_module
@@ -53,6 +53,11 @@ class MountModule(func_module.FuncModule):
cmdline.append(options)
cmdline.append(device)
cmdline.append(dir)
+ if createdir:
+ try:
+ os.makedirs(dir)
+ except:
+ return False
cmd = sub_process.Popen(cmdline, executable="/bin/mount", stdout=sub_process.PIPE, shell=False)
if cmd.wait() == 0:
return True