1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

lvmdbusd: Don't output debug for fullreport exit code 5

This is expected with an exported vg
This commit is contained in:
Tony Asleson 2022-08-31 11:05:36 -05:00
parent f5876a1f3f
commit 22942f4916

View File

@ -164,7 +164,7 @@ def call_lvm(command, debug=False, line_cb=None,
break break
if process.returncode is not None: if process.returncode is not None:
if debug or process.returncode != 0: if debug or (process.returncode != 0 and (process.returncode != 5 and "fullreport" in command)):
_debug_c(command, process.returncode, (stdout_text, stderr_text)) _debug_c(command, process.returncode, (stdout_text, stderr_text))
return process.returncode, stdout_text, stderr_text return process.returncode, stdout_text, stderr_text