From: Tony Asleson <tasleson@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - lvmdbusd: Add needed env. variables
Date: Mon, 6 Mar 2023 17:26:17 +0000 (GMT) [thread overview]
Message-ID: <20230306172617.3E85F3858D39@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c8f2125b85afe043af1b2e887a80f882b8d8d7c7
Commit: c8f2125b85afe043af1b2e887a80f882b8d8d7c7
Parent: df6120e9f715c58327451f650c003d09842f33c7
Author: Tony Asleson <tasleson@redhat.com>
AuthorDate: Mon Mar 6 10:26:44 2023 -0600
Committer: Tony Asleson <tasleson@redhat.com>
CommitterDate: Mon Mar 6 10:26:44 2023 -0600
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()
reply other threads:[~2023-03-06 17:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230306172617.3E85F3858D39@sourceware.org \
--to=tasleson@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.