From 070410520cac4eb093e76e74a14822864643a95b Mon Sep 17 00:00:00 2001 From: Dennis Toepker Date: Mon, 15 Apr 2024 10:25:29 -0700 Subject: [PATCH] replacing spi.utils isHostInDenyList with core.utils isHostInDenyList Signed-off-by: Dennis Toepker --- .../opensearch/notifications/core/utils/ValidationHelpers.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt b/notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt index 145c9079..720f57b4 100644 --- a/notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt +++ b/notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt @@ -20,7 +20,7 @@ fun validateUrl(urlString: String) { } fun validateUrlHost(urlString: String, hostDenyList: List) { - require(!org.opensearch.notifications.spi.utils.isHostInDenylist(urlString, hostDenyList)) { + require(!isHostInDenylist(urlString, hostDenyList)) { "Host of url is denied, based on plugin setting [notification.core.http.host_deny_list]" } }