Fix wrong number of arguments in string format (#53265)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2019-03-06 02:02:20 +05:30 committed by Brian Coca
parent a8d829d9c3
commit ef8be6a599

View file

@ -382,7 +382,7 @@ class ConfigManager(object):
except AnsibleError:
raise
except Exception as e:
raise AnsibleError("Unhandled exception when retrieving %s:\n%s" % (config), orig_exc=e)
raise AnsibleError("Unhandled exception when retrieving %s:\n%s" % (config, to_native(e)), orig_exc=e)
return value
def get_config_value_and_origin(self, config, cfile=None, plugin_type=None, plugin_name=None, keys=None, variables=None, direct=None):