mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
added collection name to module.deprecate() calls; fixed pep8 linting issues
This commit is contained in:
committed by
Seth Foster
parent
378a0711c2
commit
25ca8d22d6
@@ -398,9 +398,15 @@ def main():
|
||||
# Deprecation warnings
|
||||
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 inputs instead'.format(legacy_input), version="ansible.tower:4.0.0")
|
||||
module.deprecate(
|
||||
collection_name=DOCUMENTATION.module,
|
||||
msg='{0} parameter has been deprecated, please use inputs instead'.format(legacy_input),
|
||||
version="4.0.0")
|
||||
if kind:
|
||||
module.deprecate(msg='The kind parameter has been deprecated, please use credential_type instead', version="ansible.tower:4.0.0")
|
||||
module.deprecate(
|
||||
collection_name=DOCUMENTATION.module,
|
||||
msg='The kind parameter has been deprecated, please use credential_type instead',
|
||||
version="4.0.0")
|
||||
|
||||
cred_type_id = module.resolve_name_to_id('credential_types', credential_type if credential_type else KIND_CHOICES[kind])
|
||||
if organization:
|
||||
|
||||
Reference in New Issue
Block a user