Skip to content

Commit b3a683d

Browse files
authored
Switch to deny list (#2113)
1 parent a60e108 commit b3a683d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/software/aws/toolkits/core/ToolkitClientManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ abstract class ToolkitClientManager {
6161
)
6262

6363
val serviceId = key.serviceClass.java.getField("SERVICE_NAME").get(null) as String
64-
if (serviceId !in GLOBAL_SERVICE_BLACKLIST && getRegionProvider().isServiceGlobal(region, serviceId)) {
64+
if (serviceId !in GLOBAL_SERVICE_DENY_LIST && getRegionProvider().isServiceGlobal(region, serviceId)) {
6565
val globalRegion = getRegionProvider().getGlobalRegionForService(region, serviceId)
6666
return cachedClients.computeIfAbsent(key.copy(region = globalRegion)) { createNewClient(it, globalRegion, credProvider) } as T
6767
}
@@ -115,7 +115,7 @@ abstract class ToolkitClientManager {
115115
}
116116

117117
companion object {
118-
private val GLOBAL_SERVICE_BLACKLIST = setOf(
118+
private val GLOBAL_SERVICE_DENY_LIST = setOf(
119119
// sts is regionalized but does not identify as such in metadata
120120
"sts"
121121
)

0 commit comments

Comments
 (0)