Set a deprecation warning and version for option sha256sum (#65637)
The option sha256sum was declared deprecated more than 2 years ago without setting a removal version. Let's do that now. fixes #65636
This commit is contained in:
parent
fec883dfff
commit
4351a756e1
1 changed files with 5 additions and 1 deletions
|
@ -78,7 +78,8 @@ options:
|
|||
- If a SHA-256 checksum is passed to this parameter, the digest of the
|
||||
destination file will be calculated after it is downloaded to ensure
|
||||
its integrity and verify that the transfer completed successfully.
|
||||
This option is deprecated. Use C(checksum) instead.
|
||||
This option is deprecated and will be removed in version 2.14. Use
|
||||
option C(checksum) instead.
|
||||
default: ''
|
||||
version_added: "1.3"
|
||||
checksum:
|
||||
|
@ -450,6 +451,9 @@ def main():
|
|||
if module.params.get('thirsty'):
|
||||
module.deprecate('The alias "thirsty" has been deprecated and will be removed, use "force" instead', version='2.13')
|
||||
|
||||
if module.params.get('sha256sum'):
|
||||
module.deprecate('The parameter "sha256sum" has been deprecated and will be removed, use "checksum" instead', version='2.14')
|
||||
|
||||
url = module.params['url']
|
||||
dest = module.params['dest']
|
||||
backup = module.params['backup']
|
||||
|
|
Loading…
Reference in a new issue