Skip to content

Commit

Permalink
Don't display chronyc outputs on stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
melmorabity committed Oct 14, 2017
1 parent c58b31c commit 86e32b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_chrony.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
command.append('-d')

try:
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=None)
output = process.communicate()[0]
except OSError as e:
helper.status(pynag.Plugins.unknown)
Expand Down

0 comments on commit 86e32b1

Please sign in to comment.