Commit cafa690b by lepdou

exists

parent 2c20c9d8
......@@ -22,7 +22,7 @@ public class ClusterService {
public ClusterDTO createCluster(Env env, ClusterDTO cluster){
if (!clusterAPI.isClusterUnique(cluster.getAppId(), env, cluster.getName())){
throw new BadRequestException(String.format("cluster %s already exist.", cluster.getName()));
throw new BadRequestException(String.format("cluster %s already exists.", cluster.getName()));
}
return clusterAPI.createOrUpdate(env, cluster);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment