From 12c65edadf44c2c9e30a59ab20f6cfe015136c11 Mon Sep 17 00:00:00 2001 From: Savindu Dimal Date: Thu, 4 Jan 2024 16:14:14 +0530 Subject: [PATCH] Add gateway label fliter when handling deploy API --- .../java/org/wso2/carbon/apimgt/gateway/InMemoryAPIDeployer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/InMemoryAPIDeployer.java b/components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/InMemoryAPIDeployer.java index e6e09cf5fa8a..61a2453e4614 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/InMemoryAPIDeployer.java +++ b/components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/InMemoryAPIDeployer.java @@ -90,6 +90,7 @@ public boolean deployAPI(DeployAPIInGatewayEvent gatewayEvent) throws ArtifactSy String apiId = gatewayEvent.getUuid(); Set gatewayLabels = gatewayEvent.getGatewayLabels(); + gatewayLabels.retainAll(gatewayArtifactSynchronizerProperties.getGatewayLabels()); try { GatewayAPIDTO gatewayAPIDTO = retrieveArtifact(apiId, gatewayLabels); if (gatewayAPIDTO != null) {