-
Notifications
You must be signed in to change notification settings - Fork 635
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
TypeError: Runtime.prepare_environment() got an unexpected keyword argument 'offline' #2183
Comments
Can you run a offline switch was added in compat v2.1.0 via ansible/ansible-compat@1d53bc9 |
Thanks for the hint! I finally got it working. So just in case some comes along:
Looks like it was a "mixup" of different versions. While I had |
Summary
Running
ansible-lint .
for https://github.com/githubixx/ansible-role-cni e.g. causes this error:Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
Archlinux (updated yesterday) but issue already exits since at least 2-3 weeks
STEPS TO REPRODUCE
Desired Behavior
No
TypeError
exception should be thrown.Seems it was introduced here: https://github.com/ansible/ansible-lint/pull/2115/files#diff-16e01f8d036f46620401c93e06e17287bdac89543238bcaa029fc185ed8d5f42R251
If I change
app.runtime.prepare_environment(offline=offline)
back toapp.runtime.prepare_environment()
everything is 🆒 again.The text was updated successfully, but these errors were encountered: