LOG.info(String.format("Updated instance '%s' status to %s based on API information", realInstanceName, realInstanceStatus));
instance.setStatus(realInstanceStatus);
}
}
final Collection<G> instances = image.getInstances();
<BUG>List<String> instancesToRemove = new ArrayList<String>();
</BUG>
for (final G cloudInstance : instances) {
try {
final String instanceName = cloudInstance.getName();

LOG.info(String.format("Updated instance '%s' status to %s based on API information", realInstanceName, realInstanceStatus));
instance.setStatus(realInstanceStatus);
}
}
final Collection<G> instances = image.getInstances();
final Set<String> instancesToRemove = new HashSet<>();
for (final G cloudInstance : instances) {
try {
final String instanceName = cloudInstance.getName();
