summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2016-06-28 12:52:31 -0500
committerTony Asleson <tasleson@redhat.com>2016-06-28 12:54:48 -0500
commite6e5c3d3ecb7de18ec2d103df8e5b0229df9ce1c (patch)
tree47bc76eaf571974aa7be34e8c2fdfd0b3774a475
parent7c5a08521b687c7c7074b41d880e1e559d4ea6b8 (diff)
downloadlvm2-e6e5c3d3ecb7de18ec2d103df8e5b0229df9ce1c.tar.gz
lvmdbusd: Remove WARNING for 'lvm help'
We call 'lvm help' to find out if fullreport is supported. Lvm dumps help to stderr. Common code prints a warning if we exit with 0, but have something in stderr so we are skipping the warning message.
-rw-r--r--daemons/lvmdbusd/cmdhandler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/lvmdbusd/cmdhandler.py b/daemons/lvmdbusd/cmdhandler.py
index 560b38954..391757d6d 100644
--- a/daemons/lvmdbusd/cmdhandler.py
+++ b/daemons/lvmdbusd/cmdhandler.py
@@ -110,7 +110,7 @@ def call_lvm(command, debug=False):
_debug_c(command, process.returncode, (stdout_text, stderr_text))
if process.returncode == 0:
- if cfg.DEBUG and out[1] and len(out[1]):
+ if cfg.DEBUG and out[1] and len(out[1]) and 'help' not in command:
log_error('WARNING: lvm is out-putting text to STDERR on success!')
_debug_c(command, process.returncode, (stdout_text, stderr_text))