Skip to content

Commit a81f137

Browse files
replacing spi.utils isHostInDenyList with core.utils isHostInDenyList (#904) (#913)
Signed-off-by: Dennis Toepker <toepkerd@amazon.com>
1 parent c764f0c commit a81f137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fun validateUrl(urlString: String) {
2020
}
2121

2222
fun validateUrlHost(urlString: String, hostDenyList: List<String>) {
23-
require(!org.opensearch.notifications.spi.utils.isHostInDenylist(urlString, hostDenyList)) {
23+
require(!isHostInDenylist(urlString, hostDenyList)) {
2424
"Host of url is denied, based on plugin setting [notification.core.http.host_deny_list]"
2525
}
2626
}

0 commit comments

Comments
 (0)