actually make use of option aliases

This commit is contained in:
Seth Foster
2021-05-18 10:43:53 -04:00
parent 54dd24b96b
commit 4add72b9d2
4 changed files with 78 additions and 74 deletions

View File

@@ -103,7 +103,7 @@ EXAMPLES = '''
'''
RETURN = '''
token:
tower_token:
type: dict
description: An Ansible Fact variable representing a token object which can be used for auth in subsequent modules. See examples for usage.
contains:
@@ -125,7 +125,7 @@ def return_token(module, last_response):
# This method will return the entire token object we got back so that a user has access to the token
module.json_output['ansible_facts'] = {
'token': last_response,
'tower_token': last_response,
}
module.exit_json(**module.json_output)