Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible_runner.interface.run does not take "settings" keyword argument #461

Closed
djuran opened this issue Jun 10, 2020 · 1 comment
Closed

Comments

@djuran
Copy link

djuran commented Jun 10, 2020

According to the docs, ansible_runner.interface.run should accept a "settings" argument. This doesn't seem to work in reality though:

`#! /usr/bin/python3

import ansible_runner

ansible_runner.interface.run(playbook='/home/djuran/playbook.yaml',
settings={})
`
(env) [djuran@localhost ~]$ env/bin/python3 test.py
Traceback (most recent call last):
File "test.py", line 8, in
settings={})
File "/home/djuran/env/lib64/python3.6/site-packages/ansible_runner/interface.py", line 177, in run
r = init_runner(**kwargs)
File "/home/djuran/env/lib64/python3.6/site-packages/ansible_runner/interface.py", line 64, in init_runner
rc = RunnerConfig(**kwargs)
TypeError: init() got an unexpected keyword argument 'settings'

@AlanCoding
Copy link
Member

Closing as duplicate of #493

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants