From 1d64d6f52b6e015a73c5fd1a2e96cc03048ca1e8 Mon Sep 17 00:00:00 2001 From: Andy Grover Date: Wed, 30 Oct 2013 11:23:04 -0700 Subject: [PATCH] In mount_configfs(), Popen args param should be a sequence Fixes #37. Signed-off-by: Andy Grover --- rtslib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtslib/utils.py b/rtslib/utils.py index 90e9bb3..63a6a64 100644 --- a/rtslib/utils.py +++ b/rtslib/utils.py @@ -372,7 +372,7 @@ def modprobe(module): def mount_configfs(): if not os.path.ismount("/sys/kernel/config"): cmdline = "mount -t configfs none /sys/kernel/config" - process = subprocess.Popen(cmdline, + process = subprocess.Popen(cmdline.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) (stdoutdata, stderrdata) = process.communicate()