From: garciadeblas Date: Wed, 25 Jun 2025 13:59:37 +0000 (+0200) Subject: Fix GET request to Keystone auth_url to add a timeout limit X-Git-Tag: v18.0.0~13 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=9f7d4c51e8c94a2c52f5dacc61880cf91ecf80ab;p=osm%2FNBI.git Fix GET request to Keystone auth_url to add a timeout limit Change-Id: If9f997d8944e769f9cd9d78671a3dfde72e0ff2f Signed-off-by: garciadeblas --- diff --git a/osm_nbi/authconn_keystone.py b/osm_nbi/authconn_keystone.py index a84b3d9..89676e7 100644 --- a/osm_nbi/authconn_keystone.py +++ b/osm_nbi/authconn_keystone.py @@ -96,7 +96,7 @@ class AuthconnKeystone(Authconn): while available is None: time.sleep(1) try: - result = requests.get(self.auth_url) + result = requests.get(self.auth_url, timeout=10) available = True if result.status_code == 200 else None except Exception: counter -= 1