final DCOSAccount.ClusterCredential credential = new DCOSAccount.ClusterCredential(clusterName, uid, password, null); account.getClusters().add(credential); final DCOSAccount.ClusterCredential credential = new DCOSAccount.ClusterCredential(clusterName, uid, null, serviceKeyFile); account.getClusters().add(credential);
final DCOSAccount.ClusterCredential credential = new DCOSAccount.ClusterCredential(clusterName, uid, password, null); account.getClusters().add(credential); final DCOSAccount.ClusterCredential credential = new DCOSAccount.ClusterCredential(clusterName, uid, null, serviceKeyFile); account.getClusters().add(credential);
if (account.getClusters().isEmpty()) { problems.addProblem(ERROR, "Account does not have any clusters configured") .setRemediation("Edit the account with either --update-user-credential or --update-service-credential");
if (account.getClusters().isEmpty()) { problems.addProblem(ERROR, "Account does not have any clusters configured") .setRemediation("Edit the account with either --update-user-credential or --update-service-credential");
final Set<String> accountClusters = account.getClusters().stream().map(c -> c.getName()) .collect(Collectors.toSet()); accountClusters.removeAll(definedClusters); account.getClusters().forEach(c -> { final List<String> key = Lists.newArrayList(c.getName(), c.getUid()); if (credentials.contains(key)) {
final Set<String> accountClusters = account.getClusters().stream().map(c -> c.getName()) .collect(Collectors.toSet()); accountClusters.removeAll(definedClusters); account.getClusters().forEach(c -> { final List<String> key = Lists.newArrayList(c.getName(), c.getUid()); if (credentials.contains(key)) {