summaryrefslogtreecommitdiffstats
path: root/func/minion/modules/hardware.py
diff options
context:
space:
mode:
authorSilas Sewell <silas@sewell.ch>2008-11-25 10:19:03 -0700
committerAdrian Likins <alikins@redhat.com>2008-11-25 12:58:28 -0500
commit2713a451f5c33bc17e2d79cfaedbb074c716b896 (patch)
tree6d517fdf9fc18d2680da986a003447200381928e /func/minion/modules/hardware.py
parent6b16e2f8250ed91c4d5c7642e15b2e2d30b49352 (diff)
downloadfunc-2713a451f5c33bc17e2d79cfaedbb074c716b896.tar.gz
func-2713a451f5c33bc17e2d79cfaedbb074c716b896.tar.xz
func-2713a451f5c33bc17e2d79cfaedbb074c716b896.zip
* Added close_fds=True to sub_process calls.
Diffstat (limited to 'func/minion/modules/hardware.py')
-rw-r--r--func/minion/modules/hardware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/func/minion/modules/hardware.py b/func/minion/modules/hardware.py
index 5a72da4..8c0852f 100644
--- a/func/minion/modules/hardware.py
+++ b/func/minion/modules/hardware.py
@@ -36,7 +36,7 @@ class HardwareModule(func_module.FuncModule):
for easier parsing. Each device is a entry in the return hash.
"""
- cmd = sub_process.Popen(["/usr/bin/lshal"],shell=False,stdout=sub_process.PIPE)
+ cmd = sub_process.Popen(["/usr/bin/lshal"],shell=False,stdout=sub_process.PIPE,close_fds=True)
data = cmd.communicate()[0]
data = data.split("\n")