mirror of
https://github.com/ansible/awx.git
synced 2026-01-24 16:01:20 -03:30
Delete depcreated username parameter
This commit is contained in:
parent
5a374585de
commit
1c729518a5
@ -52,8 +52,6 @@ options:
|
||||
redirect_uris:
|
||||
description:
|
||||
- Allowed urls list, space separated. Required when authorization-grant-type=authorization-code
|
||||
default: "present"
|
||||
choices: ["present", "absent"]
|
||||
type: str
|
||||
state:
|
||||
description:
|
||||
@ -66,11 +64,6 @@ options:
|
||||
- Set True to skip authorization step for completely trusted applications.
|
||||
default: false
|
||||
type: bool
|
||||
username:
|
||||
description:
|
||||
- Username for this credential. ``access_key`` for AWS.
|
||||
- Deprecated, please use inputs
|
||||
type: str
|
||||
'''
|
||||
|
||||
|
||||
@ -110,8 +103,7 @@ def main():
|
||||
organization=dict(required=True),
|
||||
redirect_uris=dict(type="list", elements='str'),
|
||||
state=dict(choices=['present', 'absent'], default='present'),
|
||||
skip_authorization=dict(type=bool),
|
||||
username=dict()
|
||||
skip_authorization=dict(type=bool)
|
||||
)
|
||||
|
||||
# Create a module for ourselves
|
||||
@ -156,9 +148,6 @@ def main():
|
||||
if redirect_uris is not None:
|
||||
application_fields['redirect_uris'] = redirect_uris
|
||||
|
||||
if authorization_grant_type == 'authorization-code' and not redirect_uris:
|
||||
module.fail_json(msg='Parameter redirect_uris is required when authorization-grant-type is authorization code based.')
|
||||
|
||||
# If the state was present and we can let the module build or update the existing application, this will return on its own
|
||||
module.create_or_update_if_needed(
|
||||
application, application_fields,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user