You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/ansible-test-sanity-validat.../ansible_collections/ns/col/plugins/modules/invalid_choice_value.py

34 lines
794 B
Python

#!/usr/bin/python
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
module: invalid_choice_value
short_description: Test for equal length of chocies with correct options
description: Test for equal length of chocies with correct options
author:
- Ansible Core Team
options:
caching:
description:
- Type of Caching.
type: str
choices:
- ReadOnly
- ReadWrite
"""
EXAMPLES = """#"""
RETURN = """"""
from ansible.module_utils.basic import AnsibleModule
if __name__ == "__main__":
module = AnsibleModule(
argument_spec=dict(caching=dict(type="str", choices=["ReadOnly", "ReadOnly"])),
supports_check_mode=False,
)
module.exit_json()