private Cluster getCluster(String clusterId, Account account) throws IOException, MissingClusterException { Cluster cluster = clusterStoreService.getView(account).getCluster(clusterId); if (cluster == null) { throw new MissingClusterException("cluster " + clusterId + " does not exist"); } return cluster; }
LOG.debug("cluster info: {}", cluster); if (cluster == null) { throw new MissingClusterException("cluster " + clusterId + " not found.");
LOG.debug("cluster info: {}", cluster); if (cluster == null) { throw new MissingClusterException("cluster " + clusterId + " not found.");
cluster = view.getCluster(clusterId); if (cluster == null) { throw new MissingClusterException("cluster " + clusterId + " not found.");