summaryrefslogtreecommitdiffstats
path: root/func/minion/modules/snmp.py
diff options
context:
space:
mode:
Diffstat (limited to 'func/minion/modules/snmp.py')
-rw-r--r--func/minion/modules/snmp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/func/minion/modules/snmp.py b/func/minion/modules/snmp.py
index c06655d..b8033ee 100644
--- a/func/minion/modules/snmp.py
+++ b/func/minion/modules/snmp.py
@@ -29,7 +29,7 @@ class Snmp(func_module.FuncModule):
"""
command = '%s -c %s %s %s' % (base_snmp_command, rocommunity, hostname, oid)
- cmdref = sub_process.Popen(command.split(),stdout=sub_process.PIPE,stderr=sub_process.PIPE, shell=False)
+ cmdref = sub_process.Popen(command.split(), stdout=sub_process.PIPE, stderr=sub_process.PIPE, shell=False, close_fds=True)
data = cmdref.communicate()
return (cmdref.returncode, data[0], data[1])