From 443690b2af95f5b2b9ee7a07e6c68596aa7cb62d Mon Sep 17 00:00:00 2001 From: Gerd Oberlechner Date: Tue, 20 Dec 2022 08:54:56 +0100 Subject: [PATCH] clarify failure behavior on CNA API errors Signed-off-by: Gerd Oberlechner --- reconcile/cna/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reconcile/cna/client.py b/reconcile/cna/client.py index 7e8bc03df9..d05bc4e3c7 100644 --- a/reconcile/cna/client.py +++ b/reconcile/cna/client.py @@ -18,6 +18,9 @@ class CNAClient: """ Client used to interact with CNA. CNA API doc can be found here: https://gitlab.cee.redhat.com/service/cna-management/-/blob/main/openapi/openapi.yaml#/ + + All HTTP errors while communicating with the CNA API are raised + as a `requests.exceptions.HTTPError`. """ def __init__(self, ocm_client: OCMBaseClient, init_metadata: bool = False):