// new member instance(s): {N} - {G}
List<Instance> startedInstances = difference(expandedGroup,
initialGroup);
LOG.debug("started instances: {}", startedInstances);
startedMachines = transform(startedInstances,
new InstanceToMachine());
// await new instance(s) being assigned an IP address
List<Instance> membersWithIp = Lists.newArrayList();
for (Instance createdInstance : startedInstances) {
membersWithIp.add(awaitIpAddress(createdInstance));
}
startedMachines = transform(membersWithIp, new InstanceToMachine());
} catch (Exception e) {
throw new StartMachinesException(count, startedMachines, e);
}
return startedMachines;