Add porting guide entry for fetch_url change in behavior (#76314)

pull/76324/head
Matt Martz 3 years ago committed by GitHub
parent c8a14c6be8
commit 04698b0c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -72,6 +72,12 @@ Noteworthy module changes
No notable changes No notable changes
Breaking Changes
----------------
* ``ansible.module_utils.urls.fetch_url`` will now return the captured ``HTTPError`` exception as ``r``. ``HTTPError`` is a response like object that can offer more information to module authors. Modules should rely on ``info['status'] >= 400`` to determine if there was a failure, instead of using ``r is None`` or catching ``AttributeError`` when attempting ``r.read()``.
Plugins Plugins
======= =======

Loading…
Cancel
Save