From b9a4fdd61642ed1026ff4cad24624afb18ec9204 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Mon, 11 Sep 2017 16:04:51 +0200 Subject: [PATCH] Fix handling of config vars with eval expression (#29536) The config variables defined with eval, like INVENTORY_IGNORE_EXTS, are not stored properly once the eval is processed. This causes references to the constant to still have the eval in the value. (cherry picked from commit f0aa31b49e191ce5f721fcab3e5c3125eccaf87a) --- lib/ansible/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index a83f166ec52..1ca1b2f0828 100644 --- a/lib/ansible/constants.py +++ b/lib/ansible/constants.py @@ -108,6 +108,6 @@ for setting in config.data.get_settings(): except: value = setting.value - set_constant(setting.name, setting.value) + set_constant(setting.name, value or setting.value)