validate_modules: allow 'choices' for return values (#76009)

* Allow 'choices' for return values.
pull/75950/head
Felix Fontein 3 years ago committed by GitHub
parent 1ea74f4dd6
commit 7a28246248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
minor_changes:
- "ansible-test validate_modules - allow ``choices`` for return values (https://github.com/ansible/ansible/pull/76009)."

@ -395,6 +395,7 @@ def return_schema(for_collection):
Required('type'): Any('bool', 'complex', 'dict', 'float', 'int', 'list', 'str'),
'version_added': version(for_collection),
'version_added_collection': collection_name,
'choices': Any([object], (object,)),
'sample': json_value,
'example': json_value,
'contains': Any(None, *list({str_type: Self} for str_type in string_types)),

Loading…
Cancel
Save