From c8f2125b85afe043af1b2e887a80f882b8d8d7c7 Mon Sep 17 00:00:00 2001 From: Tony Asleson Date: Mon, 6 Mar 2023 10:26:44 -0600 Subject: [PATCH] lvmdbusd: Add needed env. variables When running lvmdb.py by itself for testing we need these. --- daemons/lvmdbusd/lvmdb.py.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemons/lvmdbusd/lvmdb.py.in b/daemons/lvmdbusd/lvmdb.py.in index 41fedb80f..e6bec926a 100644 --- a/daemons/lvmdbusd/lvmdb.py.in +++ b/daemons/lvmdbusd/lvmdb.py.in @@ -437,6 +437,8 @@ class DataStore(object): if __name__ == "__main__": + os.environ["LC_ALL"] = "C" + os.environ["LVM_COMMAND_PROFILE"] = "lvmdbusd" pp = prettyprint.PrettyPrinter(indent=4) ds = DataStore()