diff options
author | Steve 'Ashcrow' Milner <stevem@gnulinux.net> | 2008-01-13 14:12:30 -0500 |
---|---|---|
committer | Steve 'Ashcrow' Milner <stevem@gnulinux.net> | 2008-01-13 14:12:30 -0500 |
commit | 63170952d465a8acf8355e7b346733e4f6ddcace (patch) | |
tree | 8aa8d13ac00c89dc18c8dd9090b619facbf679af /func | |
parent | 5d5aba57547471d9b4f9b66cd36e4b3799744c4d (diff) | |
parent | 71fb48d2be9eb87067494ed11451f2ca68a67ba0 (diff) | |
download | func-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.py | 7 |
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 |