Skip to content

Commit

Permalink
Merge pull request #12530 from msm1992/master
Browse files Browse the repository at this point in the history
Fix issue in healthcheck API
  • Loading branch information
msm1992 authored Oct 3, 2024
2 parents 3b57593 + 6d0bd4c commit 3d1be36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public void markApisAsUnDeployedInTenant(String tenantDomain) {

private void initializeTenantDeploymentStatusMap() {
try {
List<String> tenants = GatewayUtils.getTenantsToBeDeployed();
Set<String> tenants = GatewayUtils.getTenantsToBeDeployed();
tenantDeployStatus = tenants.stream().collect(Collectors.toMap(str -> str, str -> false));
} catch (APIManagementException e) {
log.error("Error while initializing tenant deployment status map", e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1638,8 +1638,8 @@ public static String getEagerLoadingEnabledTenantsConfig() {
*
* @return List of eager loading enabled tenants
*/
public static List<String> getTenantsToBeDeployed() throws APIManagementException {
List<String> tenantsToBeDeployed = new ArrayList<>();
public static Set<String> getTenantsToBeDeployed() throws APIManagementException {
Set<String> tenantsToBeDeployed = new HashSet<>();
tenantsToBeDeployed.add(APIConstants.SUPER_TENANT_DOMAIN);

//Read eager loading config from carbon server config, and extract include and exclude tenant lists
Expand Down

0 comments on commit 3d1be36

Please sign in to comment.