From 04698b0c41389257be55d9035f089e715851b612 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Thu, 18 Nov 2021 13:05:32 -0600 Subject: [PATCH] Add porting guide entry for fetch_url change in behavior (#76314) --- docs/docsite/rst/porting_guides/porting_guide_core_2.13.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/docsite/rst/porting_guides/porting_guide_core_2.13.rst b/docs/docsite/rst/porting_guides/porting_guide_core_2.13.rst index 540b281635a..b5adedb0f7a 100644 --- a/docs/docsite/rst/porting_guides/porting_guide_core_2.13.rst +++ b/docs/docsite/rst/porting_guides/porting_guide_core_2.13.rst @@ -72,6 +72,12 @@ Noteworthy module 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 =======