Skip to content
Snippets Groups Projects
Commit 85b61af6 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Hide Munin configure stderr | refs #32915

parent 665e7fdc
No related branches found
No related tags found
No related merge requests found
......@@ -30,12 +30,10 @@ def check_munin_node():
# check that no plugin should be activated or disabled
lg.log('Checking that no plugin should be enabled/disabled.')
lg.log('munin-node-configure --shell --remove-also')
p = subprocess.run(['munin-node-configure', '--shell', '--remove-also'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
lg.log('munin-node-configure --shell --remove-also # stderr is hidden')
p = subprocess.run(['munin-node-configure', '--shell', '--remove-also'], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
out = p.stdout.decode('utf-8').strip()
err = p.stderr.decode('utf-8').strip()
lg.log(out)
lg.log(err)
if out:
if out.count('ln -s'):
lg.warning('%s plugins should be enabled.' % out.count('ln -s'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment