1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fixed up get_options in AnsiblePlugin to use the correct plugin name

This commit is contained in:
Jordan Borean 2017-11-22 07:28:50 +10:00 committed by Brian Coca
parent 1ee511f82c
commit 23f8833e87

View file

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