From e9832a4904b4ab1438ac963fb74e528dd8fda8c1 Mon Sep 17 00:00:00 2001
From: Karel van Klink <karel.vanklink@geant.org>
Date: Tue, 6 Aug 2024 09:34:34 +0200
Subject: [PATCH] Update use of internal hostname in LSO callback URLs

---
 gso/services/lso_client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gso/services/lso_client.py b/gso/services/lso_client.py
index 6e1ec8fa..6eca3f65 100644
--- a/gso/services/lso_client.py
+++ b/gso/services/lso_client.py
@@ -37,7 +37,7 @@ def _send_request(parameters: dict, callback_route: str) -> None:
     params = oss.PROVISIONING_PROXY
 
     # Build up a callback URL of the Provisioning Proxy to return its results to.
-    callback_url = f"{oss.GENERAL.public_hostname}{callback_route}"
+    callback_url = f"{oss.GENERAL.internal_hostname}{callback_route}"
     debug_msg = f"[provisioning proxy] Callback URL set to {callback_url}"
     logger.debug(debug_msg)
 
-- 
GitLab