-
Notifications
You must be signed in to change notification settings - Fork 361
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
Accept a dictionary for playbook #855
Accept a dictionary for playbook #855
Conversation
It may also be a good idea to add some error handling here for invalid values to |
75e16a8
to
190e50c
Compare
recheck |
1 similar comment
recheck |
6aa48d2
to
2796c6f
Compare
A string isn't valid.
Use Python 3.8 for linters Remove Python 3.8 specific code changes CI is stuck on Python 3.6 for tests currently, so these changes won't pass.
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.
Nice work
Remove the use of reset_mock() and create separate tests.
Add tests for role vars and skipping fact gathering
A dictionary is more accuratey a MutableMapping.
2796c6f
to
0fecae8
Compare
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.
LGTM!
Backport to release_2.0: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 3d6886d on top of patchback/backports/release_2.0/3d6886d1a26358ead139fef736d1c8ca07f7ab71/pr-855 Backporting merged PR #855 into devel
🤖 @patchback |
Accept a dictionary for playbook Fixes ansible#852 Fixes ansible#642 The validation function isplaybook() expects a playbook to be a list of dictionaries, not a bare dictionary or a string. Update the docs to reflect this requirement and cast a bare dictionary to a list before passing to isplaybook(). Add tests Reviewed-by: David Shrewsbury <None> Reviewed-by: Sam Doran <sdoran@redhat.com> Reviewed-by: Shane McDonald <me@shanemcd.com> Reviewed-by: None <None> (cherry picked from commit 3d6886d)
The validation function isplaybook() expects a playbook to be a list of dictionaries, not a bare dictionary or a string. Update the docs to reflect this requirement and cast a bare dictionary to a list before passing to isplaybook(). (cherry picked from commit 3d6886d)
The validation function isplaybook() expects a playbook to be a list of dictionaries, not a bare dictionary or a string. Update the docs to reflect this requirement and cast a bare dictionary to a list before passing to isplaybook(). (cherry picked from commit 3d6886d)
The validation function isplaybook() expects a playbook to be a list of dictionaries, not a bare dictionary or a string. Update the docs to reflect this requirement and cast a bare dictionary to a list before passing to isplaybook(). (cherry picked from commit 3d6886d)
Fixes #852
Fixes #642
The validation function
isplaybook()
expects a playbook to be a list of dictionaries, not a bare dictionary or a string. Update the docs to reflect this requirement and cast a bare dictionary to a list before passing toisplaybook()
.