mirror of
https://github.com/ansible/awx.git
synced 2026-02-02 01:58:09 -03:30
Remove unnecessary module parameters
remove cases of required=False, the default remove str type specifier which, the default remove supports check mode, not changeable
This commit is contained in:
@@ -26,25 +26,21 @@ options:
|
||||
name:
|
||||
description:
|
||||
- Name of setting to modify
|
||||
required: False
|
||||
type: str
|
||||
value:
|
||||
description:
|
||||
- Value to be modified for given setting.
|
||||
- If given a non-string type, will make best effort to cast it to type API expects.
|
||||
- For better control over types, use the C(settings) param instead.
|
||||
required: False
|
||||
type: str
|
||||
settings:
|
||||
description:
|
||||
- A data structure to be sent into the settings endpoint
|
||||
required: False
|
||||
type: dict
|
||||
version_added: "3.7"
|
||||
tower_oauthtoken:
|
||||
description:
|
||||
- The Tower OAuth token to use.
|
||||
required: False
|
||||
type: str
|
||||
version_added: "3.7"
|
||||
requirements:
|
||||
@@ -112,9 +108,9 @@ def coerce_type(module, value):
|
||||
def main():
|
||||
# Any additional arguments that are not fields of the item can be added here
|
||||
argument_spec = dict(
|
||||
name=dict(required=False),
|
||||
value=dict(required=False),
|
||||
settings=dict(required=False, type='dict'),
|
||||
name=dict(),
|
||||
value=dict(),
|
||||
settings=dict(type='dict'),
|
||||
)
|
||||
|
||||
# Create a module for ourselves
|
||||
|
||||
Reference in New Issue
Block a user