mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Add skip authorization option to collection application module (#15190)
This commit is contained in:
@@ -121,6 +121,7 @@ def main():
|
|||||||
client_type = module.params.get('client_type')
|
client_type = module.params.get('client_type')
|
||||||
organization = module.params.get('organization')
|
organization = module.params.get('organization')
|
||||||
redirect_uris = module.params.get('redirect_uris')
|
redirect_uris = module.params.get('redirect_uris')
|
||||||
|
skip_authorization = module.params.get('skip_authorization')
|
||||||
state = module.params.get('state')
|
state = module.params.get('state')
|
||||||
|
|
||||||
# Attempt to look up the related items the user specified (these will fail the module if not found)
|
# Attempt to look up the related items the user specified (these will fail the module if not found)
|
||||||
@@ -146,6 +147,8 @@ def main():
|
|||||||
application_fields['description'] = description
|
application_fields['description'] = description
|
||||||
if redirect_uris is not None:
|
if redirect_uris is not None:
|
||||||
application_fields['redirect_uris'] = ' '.join(redirect_uris)
|
application_fields['redirect_uris'] = ' '.join(redirect_uris)
|
||||||
|
if skip_authorization is not None:
|
||||||
|
application_fields['skip_authorization'] = skip_authorization
|
||||||
|
|
||||||
response = module.create_or_update_if_needed(application, application_fields, endpoint='applications', item_type='application', auto_exit=False)
|
response = module.create_or_update_if_needed(application, application_fields, endpoint='applications', item_type='application', auto_exit=False)
|
||||||
if 'client_id' in response:
|
if 'client_id' in response:
|
||||||
|
|||||||
Reference in New Issue
Block a user