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

Fix bugs in choices #276

Merged
merged 1 commit into from
May 6, 2024
Merged

Conversation

felixfontein
Copy link
Collaborator

Fixes ansible/ansible#83204.

https://github.com/ansible/ansible/pull/83149/files#diff-fc025deb71887b0e6b0b3280f4dac62412a7e253db3417036dc9ce8d9a9f8e52R24 triggered three bugs in antsibull-docs:

  1. If choices is a dictionary for type=list, it was treated as a single entry in the choices list for validation purposes (resulting in a validation error).
  2. If choices is a dictionary for type=list, the normalized result was recombined incorrectly, resulting in a list with a single entry.
  3. If default is present for type=list with choices, rendering fails with TypeError: unhashable type: 'list'. (This only happens after 1. is fixed.)

@felixfontein felixfontein merged commit 3c930d4 into ansible-community:main May 6, 2024
11 checks passed
@felixfontein felixfontein deleted the choices branch May 6, 2024 20:12
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

Successfully merging this pull request may close these issues.

Regression error - package_facts module changes fails ansible-documentation CI
1 participant