Skip to content

Commit 0ff5405

Browse files
committed
CLOUDIFY-1983 fixed IPV6 comparison.
1 parent 56d354d commit 0ff5405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esc/src/main/java/org/cloudifysource/esc/driver/provisioning/ElasticMachineProvisioningCloudifyAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ private GridServiceAgent getGSAByIpOrHost(final String machineIp, final GSAReser
677677
final GridServiceAgent[] allAgents = originalESMAdmin.getGridServiceAgents().getAgents();
678678

679679
for (final GridServiceAgent gridServiceAgent : allAgents) {
680-
if (gridServiceAgent.getMachine().getHostAddress().equals(machineIp)
680+
if (IPUtils.isSameIpAddress(gridServiceAgent.getMachine().getHostAddress(), machineIp)
681681
|| gridServiceAgent.getMachine().getHostName().equals(machineIp)) {
682682
// Check if the reservation ID of the located machine is the one we expect.
683683
// This handles the rare error where the Admin for some reason caches an entry for an old

0 commit comments

Comments
 (0)