提交 e5daa348 编写于 作者: C Cleber Rosa

Revert "avocado.core.sysinfo: Force LANG for sysinfo collection"

This reverts commit 6cb88049.

The rationale is that we should really use LC_ALL instead of LANG.
上级 e81c2ae9
......@@ -151,9 +151,6 @@ class Command(Collectible):
env = os.environ.copy()
if "PATH" not in env:
env["PATH"] = "/usr/bin:/bin"
lang = settings.get_value("sysinfo.collect", "lang", str, None)
if lang:
env["LANG"] = lang
logf_path = os.path.join(logdir, self.logf)
stdin = open(os.devnull, "r")
stdout = open(logf_path, "w")
......@@ -188,9 +185,6 @@ class Daemon(Command):
env = os.environ.copy()
if "PATH" not in env:
env["PATH"] = "/usr/bin:/bin"
lang = settings.get_value("sysinfo.collect", "lang", str, None)
if lang:
env["LANG"] = lang
logf_path = os.path.join(logdir, self.logf)
stdin = open(os.devnull, "r")
stdout = open(logf_path, "w")
......
......@@ -19,8 +19,6 @@ enabled = True
installed_packages = False
# Whether to run certain commands in bg to give extra job debug information
profiler = False
# Force LANG for sysinfo collection
lang = C
[sysinfo.collectibles]
# File with list of commands that will be executed and have their output collected
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册