fix(opensearch): return endpoint without scheme (#7766)

Closes #7707
This commit is contained in:
Alexy Grabov authored and GitHub committed 2026-11-08 18:37:00 -04:00
1 parent 3701d4d041
commit 6e3bdaf9ef
4 files changed
+59 -2

No files matched your search

@@ -636,7 +636,8 @@ public class OpenSearchController {
node.put("Created", !domain.isProcessing());
node.put("Processing", domain.isProcessing());
node.put("Deleted", domain.isDeleted());
String endpoint = domain.getEndpoint() != null ? domain.getEndpoint() : "";
String endpoint = domain.getEndpoint() != null
? domain.getEndpoint().replaceFirst("(?i)^https?://", "") : "";
if (domain.getVpcOptions() == null) {
node.put("Endpoint", endpoint);
} else if (!endpoint.isEmpty()) {