From 7a1b248fba0777f1fd0c21049a34ab8f35a665b4 Mon Sep 17 00:00:00 2001
From: Fahrudin Halilovic <fahrudin.halilovic@ess.eu>
Date: Tue, 22 Oct 2024 15:22:54 +0200
Subject: [PATCH] fix: adjust retry settings and remove InsecureRequestWarning
 suppression

---
 netbox_awx_plugin/synchronization.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/netbox_awx_plugin/synchronization.py b/netbox_awx_plugin/synchronization.py
index 7b90ba5..7f96e5d 100644
--- a/netbox_awx_plugin/synchronization.py
+++ b/netbox_awx_plugin/synchronization.py
@@ -20,11 +20,9 @@ import urllib3
 # Set up logging
 logger = logging.getLogger(__name__)
 
-# Suppress only the single InsecureRequestWarning from urllib3
-urllib3.disable_warnings(InsecureRequestWarning)
 
 # Configuration for retry mechanism
-MAX_RETRIES = 5
+MAX_RETRIES = 18
 INITIAL_DELAY = 1
 BACKOFF_FACTOR = 2
 
-- 
GitLab