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 be01bd3f..60f1c0a9 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 @@ -24,7 +24,7 @@ fun validateUrl(urlString: String) { fun validateUrlHost(urlString: String, hostDenyList: List) { val url = URL(urlString) - require( org.opensearch.notifications.spi.utils.getResolvedIps(url.host).isNotEmpty()) { + require(org.opensearch.notifications.spi.utils.getResolvedIps(url.host).isNotEmpty()) { "Host could not be resolved to a valid Ip address" } require(!org.opensearch.notifications.spi.utils.isHostInDenylist(urlString, hostDenyList)) {