server.id = "" + instance.getId();
server.links = Lists.newArrayList();
server.name = instance.getName();
FlavorData flavor;
if (instance.hasFlavor()) {
flavor = instance.getFlavor();
} else {
// TODO: I don't think any of these escaped publicly... remove.
// Most clients freak out if we don't have a flavor...
log.warn("No flavor associated with instance: {}", instance);
flavor = flavors.list().get(0);
}
if (flavor != null) {
server.flavor = new Flavor();
server.flavor.id = "" + flavor.getId();
}
server.tenantId = "" + instance.getProjectId();
if (details) {