Skip to content

Commit c22555a

Browse files
committed
Fix external gateway check
1 parent 98b08c4 commit c22555a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/notifier/ExternalGatewayNotifier.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ private boolean isExternalGatewayAvailableToDeployment(DeployAPIInGatewayEvent d
167167
Map<String, Environment> environments = APIUtil.getEnvironments(deployAPIInGatewayEvent.getTenantDomain());
168168
for (String label : gatewayLabels) {
169169
Environment environment = environments.get(label);
170-
if (environment != null && !APIConstants.WSO2_GATEWAY_ENVIRONMENT.equals(environment.getGatewayType())) {
170+
if (environment != null && !APIConstants.WSO2_GATEWAY_ENVIRONMENT.equals(environment.getProvider())) {
171171
return true;
172172
}
173173
}

components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -10407,7 +10407,7 @@ public static boolean isAnyExternalGateWayProviderExists(String tenantDomain) {
1040710407
try {
1040810408
Map<String, Environment> environments = getEnvironments(tenantDomain);
1040910409
for (Environment environment : environments.values()) {
10410-
if (!APIConstants.WSO2_GATEWAY_ENVIRONMENT.equals(environment.getGatewayType())) {
10410+
if (!APIConstants.WSO2_GATEWAY_ENVIRONMENT.equals(environment.getProvider())) {
1041110411
return true;
1041210412
}
1041310413
}

0 commit comments

Comments
 (0)