mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-06 00:14:02 -07:00
Fix module validation checks and remove old params (#39926)
This PR includes: - Fixes to the majority of module validation issues (deliberate inconsistencies between docs and arg_spec) - Removal of deprecated parameters 'method' and 'protocols' - A few typos in the documentation There are still some left-over validation errors, some are deliberate (like doc strings as default to indicate ranges, etc.)
This commit is contained in:
parent
64ee8da3f1
commit
d7f3d3b867
40 changed files with 127 additions and 377 deletions
|
@ -43,9 +43,8 @@ options:
|
|||
scope:
|
||||
description:
|
||||
- The scope of a service contract.
|
||||
- The APIC defaults new Taboo Contracts to C(context).
|
||||
- The APIC defaults to C(context) when unset during creation.
|
||||
choices: [ application-profile, context, global, tenant ]
|
||||
default: context
|
||||
state:
|
||||
description:
|
||||
- Use C(present) or C(absent) for adding or removing.
|
||||
|
@ -208,8 +207,6 @@ def main():
|
|||
scope=dict(type='str', choices=['application-profile', 'context', 'global', 'tenant']),
|
||||
description=dict(type='str', aliases=['descr']),
|
||||
state=dict(type='str', default='present', choices=['absent', 'present', 'query']),
|
||||
method=dict(type='str', choices=['delete', 'get', 'post'], aliases=['action'], removed_in_version='2.6'), # Deprecated starting from v2.6
|
||||
protocol=dict(type='str', removed_in_version='2.6'), # Deprecated in v2.6
|
||||
)
|
||||
|
||||
module = AnsibleModule(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue