return getFormattedMessage("num_instanes_already_met", count);
}
Map<String, String> response = adminFacade.setInstances(applicationName, serviceName, count, timeout);
if (response.containsKey(CloudifyConstants.LIFECYCLE_EVENT_CONTAINER_ID)) {
String pollingID = response.get(CloudifyConstants.LIFECYCLE_EVENT_CONTAINER_ID);
<BUG>this.adminFacade.waitForLifecycleEvents(pollingID, timeout, TIMEOUT_ERROR_MESSAGE);
} else {</BUG>
logger.info("Failed to retrieve lifecycle logs from rest. "
+ "Check logs for more details.");
}

return getFormattedMessage("num_instanes_already_met", count);
}
Map<String, String> response = adminFacade.setInstances(applicationName, serviceName, count, timeout);
if (response.containsKey(CloudifyConstants.LIFECYCLE_EVENT_CONTAINER_ID)) {
String pollingID = response.get(CloudifyConstants.LIFECYCLE_EVENT_CONTAINER_ID);
boolean waitForLifecycleEvents = this.adminFacade.waitForLifecycleEvents(pollingID, timeout);
if (!waitForLifecycleEvents) {
throw new TimeoutException(TIMEOUT_ERROR_MESSAGE);
}
} else {
logger.info("Failed to retrieve lifecycle logs from rest. "
+ "Check logs for more details.");
}
