-
Notifications
You must be signed in to change notification settings - Fork 7
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
Pytest cli #210
Pytest cli #210
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggesting few changes, and we need to update docs as well (section about how to run the tests).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for the fixes. I'm going to add documentation for this and merge it.
if (not isinstance(params['ansible_playbook_inventory'], str) | ||
and isinstance(params['ansible_playbook_inventory'], Iterable)): | ||
params['ansible_playbook_inventory'] = params[ | ||
'ansible_playbook_inventory'][0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would crash if the inventory variable is an empty list :)
This wrapper can be called for example with: