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:
Pilou 2018-07-19 19:45:45 +02:00 committed by John R Barker
parent 2653bd3f50
commit 06f5e49dfb
6 changed files with 73 additions and 1 deletions

View file

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