mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
inventory plugins: add test about config API usage (#41888)
* Check get_option method works with inventory plugins This use case is already tested by some cloud inventoty plugin but these tests are slow and aren't always executed, hence this new quick test. * AnsiblePlugin: Fix typo in docstring
This commit is contained in:
parent
2653bd3f50
commit
06f5e49dfb
6 changed files with 73 additions and 1 deletions
|
@ -67,7 +67,7 @@ class AnsiblePlugin(with_metaclass(ABCMeta, object)):
|
|||
Sets the _options attribute with the configuration/keyword information for this plugin
|
||||
|
||||
:arg task_keys: Dict with playbook keywords that affect this option
|
||||
:arg var_options: Dict with either 'conneciton variables'
|
||||
:arg var_options: Dict with either 'connection variables'
|
||||
:arg direct: Dict with 'direct assignment'
|
||||
'''
|
||||
self._options = C.config.get_plugin_options(get_plugin_class(self), self._load_name, keys=task_keys, variables=var_options, direct=direct)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue