service = getComputeService();
} catch (Throwable t) {
System.err.println(t.getMessage());
return null;
}
Set<? extends NodeMetadata> nodeMetaDataSet = service.listNodesDetailsMatching(getComputeFilter());
if (nodeMetaDataSet != null && !nodeMetaDataSet.isEmpty()) {
NodeMetadata nodeMetadata = nodeMetaDataSet.toArray(new NodeMetadata[0])[0];
// If we have multiple nodes we just want the headers, but not full details.
printNodeInfo(service, nodeMetaDataSet, nodeMetaDataSet.size() == 1, System.out);