diff --git a/inventory_provider/__init__.py b/inventory_provider/__init__.py index 830fc8d5a6a5693024ff5e7b6617df7d9a6e35dd..93023bfeba219a6a7991112422abc8e63ae601ca 100644 --- a/inventory_provider/__init__.py +++ b/inventory_provider/__init__.py @@ -40,7 +40,7 @@ def create_app(): "environment variable SETTINGS_FILENAME' must be defined" logging.info("initializing Flask with config from: %r" - % app.config["SETTINGS_FILENAME"]) + % os.environ["SETTINGS_FILENAME"]) app.config.from_envvar("SETTINGS_FILENAME") assert "INVENTORY_PROVIDER_CONFIG_FILENAME" in app.config, ( diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py index e9eb4ab8dce11e830660614c995e498d2a5a9753..b3e05ef0b6993cccccfb0e67f3882d92c0fa67bb 100644 --- a/inventory_provider/tasks/worker.py +++ b/inventory_provider/tasks/worker.py @@ -69,7 +69,7 @@ class WorkerArgs(bootsteps.Step): with open(config_filename) as f: task_logger = logging.getLogger(constants.TASK_LOGGER_NAME) task_logger.info( - "Initializing worker with config from: %r % config_filename)" + "Initializing worker with config from: %r % config_filename") InventoryTask.config = config.load(f)