From 23f8833e8745f01b490a6e12dd0f3e946d89654f Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Wed, 22 Nov 2017 07:28:50 +1000 Subject: [PATCH] fixed up get_options in AnsiblePlugin to use the correct plugin name --- lib/ansible/plugins/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/__init__.py b/lib/ansible/plugins/__init__.py index 20c3e822af0..8eefd0bf5a5 100644 --- a/lib/ansible/plugins/__init__.py +++ b/lib/ansible/plugins/__init__.py @@ -55,7 +55,7 @@ class AnsiblePlugin(with_metaclass(ABCMeta, object)): def get_option(self, option, hostvars=None): if option not in self._options: - option_value = C.config.get_config_value(option, plugin_type=get_plugin_class(self), plugin_name=self.name, variables=hostvars) + option_value = C.config.get_config_value(option, plugin_type=get_plugin_class(self), plugin_name=self._load_name, variables=hostvars) self.set_option(option, option_value) return self._options.get(option)