various sanity fixes

This commit is contained in:
Seth Foster
2021-06-02 12:44:16 -04:00
parent b26e33ca34
commit 157adb828e
6 changed files with 15 additions and 15 deletions

View File

@@ -120,7 +120,6 @@ options:
- Should use authorize for net type.
- Deprecated, please use inputs
type: bool
default: 'no'
authorize_password:
description:
- Password for net credentials that require authorize.
@@ -360,7 +359,7 @@ def main():
project=dict(),
ssh_key_data=dict(no_log=True),
ssh_key_unlock=dict(no_log=True),
authorize=dict(type='bool', default=False),
authorize=dict(type='bool'),
authorize_password=dict(no_log=True),
client=dict(),
security_token=dict(no_log=True),
@@ -399,12 +398,12 @@ def main():
for legacy_input in OLD_INPUT_NAMES:
if module.params.get(legacy_input) is not None:
module.deprecate(
collection_name=DOCUMENTATION.module,
collection_name="awx.awx",
msg='{0} parameter has been deprecated, please use inputs instead'.format(legacy_input),
version="4.0.0")
if kind:
module.deprecate(
collection_name=DOCUMENTATION.module,
collection_name="awx.awx",
msg='The kind parameter has been deprecated, please use credential_type instead',
version="4.0.0")

View File

@@ -132,9 +132,9 @@ def main():
max_interval = 30
interval = abs((min_interval + max_interval) / 2)
module.deprecate(
collection_name=DOCUMENTATION.module,
collection_name="awx.awx",
msg="Min and max interval have been deprecated, please use interval instead; interval will be set to {0}".format(interval),
version="ansible.tower:4.0.0",
version="4.0.0",
)
# Attempt to look up job based on the provided id

View File

@@ -401,7 +401,7 @@ def main():
for legacy_input in OLD_INPUT_NAMES:
if module.params.get(legacy_input) is not None:
module.deprecate(
collection_name=DOCUMENTATION.module,
collection_name="awx.awx",
msg='{0} parameter has been deprecated, please use notification_configuration instead'.format(legacy_input),
version="4.0.0"
)

View File

@@ -136,7 +136,7 @@ def main():
description=dict(),
application=dict(),
scope=dict(choices=['read', 'write'], default='write'),
existing_token=dict(type='dict', no_log=True),
existing_token=dict(type='dict', no_log=False),
existing_token_id=dict(),
state=dict(choices=['present', 'absent'], default='present'),
)