fetch_url: remove auto disabling decompress when gzip is not available (#80474)

pull/80482/head
Martin Krizek 3 years ago committed by GitHub
parent 9f0a9cf20d
commit bc3cc426bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
removed_features:
- "``fetch_url`` - remove auto disabling ``decompress`` when gzip is not available"

@ -1865,12 +1865,8 @@ def fetch_url(module, url, data=None, headers=None, method=None,
if not HAS_URLPARSE:
module.fail_json(msg='urlparse is not installed')
if not HAS_GZIP and decompress is True:
decompress = False
module.deprecate(
'%s. "decompress" has been automatically disabled to prevent a failure' % GzipDecodedReader.missing_gzip_error(),
version='2.16'
)
if not HAS_GZIP:
module.fail_json(msg=GzipDecodedReader.missing_gzip_error())
# ensure we use proper tempdir
old_tempdir = tempfile.tempdir

@ -239,7 +239,6 @@ test/units/utils/collection_loader/fixtures/collections_masked/ansible_collectio
test/units/utils/collection_loader/fixtures/collections_masked/ansible_collections/testns/testcoll/__init__.py empty-init # testing that collections don't need inits
test/units/utils/collection_loader/test_collection_loader.py pylint:undefined-variable # magic runtime local var splatting
lib/ansible/executor/play_iterator.py pylint:ansible-deprecated-version
lib/ansible/module_utils/urls.py pylint:ansible-deprecated-version
lib/ansible/playbook/helpers.py pylint:ansible-deprecated-version
lib/ansible/playbook/included_file.py pylint:ansible-deprecated-version
lib/ansible/plugins/action/__init__.py pylint:ansible-deprecated-version

Loading…
Cancel
Save