mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-02 13:47:42 +03:00
lvmdbusd: Set LVM_COMMAND_PROFILE=lvmdbusd
We need this to prevent lvm from interleaving the JSON output with errors written to stderr. (cherry picked from commit a5e6947d74f7b88f7f0df4328a923ad82a970634)
This commit is contained in:
parent
7394382550
commit
0aa45120e9
@ -112,8 +112,10 @@ def main():
|
|||||||
|
|
||||||
use_session = os.getenv('LVMDBUSD_USE_SESSION', False)
|
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["LC_ALL"] = "C"
|
||||||
|
os.environ["LVM_COMMAND_PROFILE"] = "lvmdbusd"
|
||||||
|
|
||||||
cfg.args = parser.parse_args()
|
cfg.args = parser.parse_args()
|
||||||
cfg.create_request_entry = RequestEntry
|
cfg.create_request_entry = RequestEntry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user