mirror of https://github.com/apache/jclouds.git
stupid bug
This commit is contained in:
parent
df2b88402c
commit
105a302b1f
|
@ -95,7 +95,7 @@ public class ELBLoadBalanceNodesStrategy implements LoadBalanceNodesStrategy {
|
||||||
currentZones = client.getAvailabilityZoneClient().addAvailabilityZonesToLoadBalancer(zonesToAdd, name);
|
currentZones = client.getAvailabilityZoneClient().addAvailabilityZonesToLoadBalancer(zonesToAdd, name);
|
||||||
Set<String> zonesToRemove = Sets.difference(currentZones, zonesDesired);
|
Set<String> zonesToRemove = Sets.difference(currentZones, zonesDesired);
|
||||||
if (zonesToRemove.size() > 0)
|
if (zonesToRemove.size() > 0)
|
||||||
client.getAvailabilityZoneClient().addAvailabilityZonesToLoadBalancer(zonesToRemove, name);
|
client.getAvailabilityZoneClient().removeAvailabilityZonesFromLoadBalancer(zonesToRemove, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
Set<String> instanceIds = ImmutableSet.copyOf(transform(nodes, new Function<NodeMetadata, String>() {
|
Set<String> instanceIds = ImmutableSet.copyOf(transform(nodes, new Function<NodeMetadata, String>() {
|
||||||
|
|
Loading…
Reference in New Issue