From 4351a756e100da91a56fb7bc9bb83dc0c194f615 Mon Sep 17 00:00:00 2001 From: Baptiste Mille-Mathias Date: Thu, 19 Dec 2019 20:47:27 +0100 Subject: [PATCH] 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 --- lib/ansible/modules/net_tools/basics/get_url.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/net_tools/basics/get_url.py b/lib/ansible/modules/net_tools/basics/get_url.py index 3c84cb60e96..52a5bc0a232 100644 --- a/lib/ansible/modules/net_tools/basics/get_url.py +++ b/lib/ansible/modules/net_tools/basics/get_url.py @@ -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']