DaanHoogland commented on code in PR #12419:
URL: https://github.com/apache/cloudstack/pull/12419#discussion_r2767644867


##########
server/src/main/java/org/apache/cloudstack/region/gslb/GlobalLoadBalancingRulesServiceImpl.java:
##########
@@ -673,7 +673,7 @@ private boolean applyGlobalLoadBalancerRuleConfig(long 
gslbRuleId, boolean revok
             // set site as 'local' for the site in that zone
             for (Pair<Long, Long> innerLoopZoneId : gslbSiteIds) {
                 SiteLoadBalancerConfig siteLb = 
zoneSiteLoadbalancerMap.get(innerLoopZoneId.first());
-                siteLb.setLocal(zoneId.first() == innerLoopZoneId.first());
+                
siteLb.setLocal(zoneId.first().equals(innerLoopZoneId.first()));

Review Comment:
   ```suggestion
                   siteLb.setLocal(Objects.equals(zoneId.first(), 
innerLoopZoneId.first()));
   ```
   would need an import as well probably



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to