various references to tower

This commit is contained in:
Seth Foster
2021-05-05 23:42:54 -04:00
parent 82c5803e59
commit 1ade9b3a7d
4 changed files with 6 additions and 6 deletions

View File

@@ -98,7 +98,7 @@ def main():
cancel_page = module.get_endpoint(command['related']['cancel']) cancel_page = module.get_endpoint(command['related']['cancel'])
if 'json' not in cancel_page or 'can_cancel' not in cancel_page['json']: if 'json' not in cancel_page or 'can_cancel' not in cancel_page['json']:
module.fail_json(msg="Failed to cancel command, got unexpected response from tower", **{'response': cancel_page}) module.fail_json(msg="Failed to cancel command, got unexpected response", **{'response': cancel_page})
if not cancel_page['json']['can_cancel']: if not cancel_page['json']['can_cancel']:
if fail_if_not_running: if fail_if_not_running:

View File

@@ -395,7 +395,7 @@ def main():
# End backwards compatability # End backwards compatability
state = module.params.get('state') state = module.params.get('state')
# Deprication warnings # Deprecation warnings
for legacy_input in OLD_INPUT_NAMES: for legacy_input in OLD_INPUT_NAMES:
if module.params.get(legacy_input) is not None: if module.params.get(legacy_input) is not None:
module.deprecate(msg='{0} parameter has been deprecated, please use inputs instead'.format(legacy_input), version="ansible.tower:4.0.0") module.deprecate(msg='{0} parameter has been deprecated, please use inputs instead'.format(legacy_input), version="ansible.tower:4.0.0")

View File

@@ -66,7 +66,7 @@ EXAMPLES = '''
name: Nexus name: Nexus
description: Credentials type for Nexus description: Credentials type for Nexus
kind: cloud kind: cloud
inputs: "{{ lookup('file', 'tower_credential_inputs_nexus.json') }}" inputs: "{{ lookup('file', 'credential_inputs_nexus.json') }}"
injectors: {'extra_vars': {'nexus_credential': 'test' }} injectors: {'extra_vars': {'nexus_credential': 'test' }}
state: present state: present
validate_certs: false validate_certs: false

View File

@@ -246,7 +246,7 @@ EXAMPLES = '''
notification_configuration: notification_configuration:
username: user username: user
password: s3cr3t password: s3cr3t
sender: tower@example.com sender: controller@example.com
recipients: recipients:
- user1@example.com - user1@example.com
host: smtp.example.com host: smtp.example.com
@@ -286,7 +286,7 @@ EXAMPLES = '''
name: irc notification name: irc notification
notification_type: irc notification_type: irc
notification_configuration: notification_configuration:
nickname: tower nickname: controller
password: s3cr3t password: s3cr3t
targets: targets:
- user1 - user1