added collection name to module.deprecate() calls; fixed pep8 linting issues

This commit is contained in:
Sarabraj Singh
2021-05-24 13:02:43 -04:00
committed by Seth Foster
parent 378a0711c2
commit 25ca8d22d6
4 changed files with 13 additions and 4 deletions

View File

@@ -401,7 +401,9 @@ def main():
for legacy_input in OLD_INPUT_NAMES:
if module.params.get(legacy_input) is not None:
module.deprecate(
msg='{0} parameter has been deprecated, please use notification_configuration instead'.format(legacy_input), version="ansible.tower:4.0.0"
collection_name=DOCUMENTATION.module,
msg='{0} parameter has been deprecated, please use notification_configuration instead'.format(legacy_input),
version="4.0.0"
)
# Attempt to look up the related items the user specified (these will fail the module if not found)