From 633f64f780387de23aacdc10cadbf3fd71972a77 Mon Sep 17 00:00:00 2001 From: Kevin Breit Date: Fri, 3 Jan 2020 08:31:20 -0600 Subject: [PATCH] Correct fetch_url error code documentation (#66061) HttpError is passed for 400 and above, not only greater than 400. Change docs to `>=` instead of `>`. --- lib/ansible/module_utils/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/urls.py b/lib/ansible/module_utils/urls.py index a13e985abdf..c896abdf74b 100644 --- a/lib/ansible/module_utils/urls.py +++ b/lib/ansible/module_utils/urls.py @@ -1435,7 +1435,7 @@ def fetch_url(module, url, data=None, headers=None, method=None, :kwarg ca_path: (optional) String of file system path to CA cert bundle to use :returns: A tuple of (**response**, **info**). Use ``response.read()`` to read the data. - The **info** contains the 'status' and other meta data. When a HttpError (status > 400) + The **info** contains the 'status' and other meta data. When a HttpError (status >= 400) occurred then ``info['body']`` contains the error response data:: Example::