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

Update developing_api.rst (#34629)

Module path needs to be array instead of a string variable in order to work.
This commit is contained in:
osLEccse 2018-01-09 12:23:01 +01:00 committed by John R Barker
parent 7d037991a3
commit 9c7d987395

View file

@ -68,7 +68,7 @@ In 2.0 things get a bit more complicated to start, but you end up with much more
Options = namedtuple('Options', ['connection', 'module_path', 'forks', 'become', 'become_method', 'become_user', 'check', 'diff'])
# initialize needed objects
loader = DataLoader()
options = Options(connection='local', module_path='/path/to/mymodules', forks=100, become=None, become_method=None, become_user=None, check=False,
options = Options(connection='local', module_path=['/path/to/mymodules'], forks=100, become=None, become_method=None, become_user=None, check=False,
diff=False)
passwords = dict(vault_pass='secret')