fixed up get_options in AnsiblePlugin to use the correct plugin name

pull/32189/merge
Jordan Borean 7 years ago committed by Brian Coca
parent 1ee511f82c
commit 23f8833e87

@ -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)

Loading…
Cancel
Save