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
This commit is contained in:
Mark McLoughlin 2013-12-16 11:22:14 +00:00
parent bcea327f91
commit a479edb493
1 changed files with 2 additions and 1 deletions

View File

@ -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)