From ac2c1360496db9b72e1d1999de74fe2a9fe54c20 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Fri, 24 Jul 2020 14:21:02 +0200 Subject: [PATCH] bifrost_inventory: use stderr for logging Logging to stdout is not visible to ansible, resulting in empty error messages. Change-Id: I26ad4ffc1fe5dc0b51b185c1c13cfa2a6e010e90 --- bifrost/inventory.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bifrost/inventory.py b/bifrost/inventory.py index 9344b5940..8520a733c 100755 --- a/bifrost/inventory.py +++ b/bifrost/inventory.py @@ -162,6 +162,7 @@ def _parse_config(): log.register_options(config) config.register_cli_opts(opts) config(prog='bifrost_inventory.py') + config.set_override('use_stderr', True) log.set_defaults() log.setup(config, "bifrost_inventory.py") return config