diff options
author | Tony Asleson <tasleson@redhat.com> | 2022-08-24 15:37:56 -0500 |
---|---|---|
committer | Marian Csontos <mcsontos@redhat.com> | 2022-11-28 17:11:21 +0100 |
commit | 0aa45120e92fe8b0f379d00f3a031e3c53feca43 (patch) | |
tree | ea51aab66abcaae837c7300dffa4c885ec77ba58 | |
parent | 73943825501daede9963bb5d15abbc4d36febb40 (diff) | |
download | lvm2-0aa45120e92fe8b0f379d00f3a031e3c53feca43.tar.gz |
lvmdbusd: Set LVM_COMMAND_PROFILE=lvmdbusdlvm2-2.03.14-7.el8
We need this to prevent lvm from interleaving the JSON output with errors
written to stderr.
(cherry picked from commit a5e6947d74f7b88f7f0df4328a923ad82a970634)
-rw-r--r-- | daemons/lvmdbusd/main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/daemons/lvmdbusd/main.py b/daemons/lvmdbusd/main.py index b0a82d492..eaea13ef8 100644 --- a/daemons/lvmdbusd/main.py +++ b/daemons/lvmdbusd/main.py @@ -112,8 +112,10 @@ def main(): use_session = os.getenv('LVMDBUSD_USE_SESSION', False) - # Ensure that we get consistent output for parsing stdout/stderr + # Ensure that we get consistent output for parsing stdout/stderr and that we + # are using the lvmdbusd profile. os.environ["LC_ALL"] = "C" + os.environ["LVM_COMMAND_PROFILE"] = "lvmdbusd" cfg.args = parser.parse_args() cfg.create_request_entry = RequestEntry |