From a479edb4933060af5d97451c1eeecdf5cd86a615 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Mon, 16 Dec 2013 11:22:14 +0000 Subject: [PATCH] Log the value of OS_CONFIG_FILES We pass the list of json files containing the collected metadata to os-refresh-config using the OS_CONFIG_FILES env variable, so it's a pretty useful piece of information to log. Change-Id: Id09e3f352e6a5a09e4183c0743a6e99a2783a888 --- os_collect_config/collect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/os_collect_config/collect.py b/os_collect_config/collect.py index 61f6ff8..7cd39b9 100644 --- a/os_collect_config/collect.py +++ b/os_collect_config/collect.py @@ -142,7 +142,8 @@ def reexec_self(signal=None, frame=None): def call_command(files, command): env = dict(os.environ) env["OS_CONFIG_FILES"] = ':'.join(files) - logger.info("Executing %s" % command) + logger.info("Executing %s with OS_CONFIG_FILES=%s" % + (command, env["OS_CONFIG_FILES"])) subprocess.check_call(CONF.command, env=env, shell=True)