diff options
author | Rob Austein <sra@hactrn.net> | 2012-06-01 17:14:14 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-06-01 17:14:14 +0000 |
commit | 6189d2bc5fefc4ab65084df7b6a031b3da21a3e2 (patch) | |
tree | 1feeab9f220948c468c6739a15844241198e53bf | |
parent | 453864915caa75d007cb4b4c9891808c1b0e8880 (diff) |
CentOS 6 ships with a version of Python too old to have
subprocess.check_output(). We're not currently using rrdtool's stdout
anyway, so just send it to /dev/null. Closes #253.
svn path=/trunk/; revision=4523
-rw-r--r-- | rcynic/rcynic-html.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rcynic/rcynic-html.py b/rcynic/rcynic-html.py index 808b9f54..973811c8 100644 --- a/rcynic/rcynic-html.py +++ b/rcynic/rcynic-html.py @@ -318,7 +318,7 @@ class Host(Problem_Mixin): try: cmd = [str(i) for i in cmd] cmd.insert(0, opt["rrdtool-binary"]) - return subprocess.check_output(cmd).splitlines() + subprocess.check_call(cmd, stdout = open("/dev/null", "w")) except OSError, e: usage("Problem running %s, perhaps you need to set --rrdtool-binary? (%s)" % ( opt["rrdtool-binary"], e)) |