Skip to content

Commit

Permalink
replacing spi.utils isHostInDenyList with core.utils isHostInDenyList (
Browse files Browse the repository at this point in the history
…#904) (#913)

Signed-off-by: Dennis Toepker <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] authored Apr 30, 2024
1 parent c764f0c commit a81f137
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fun validateUrl(urlString: String) {
}

fun validateUrlHost(urlString: String, hostDenyList: List<String>) {
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]"
}
}
Expand Down

0 comments on commit a81f137

Please sign in to comment.