提交 cafa690b 编写于 作者: L lepdou

exists

上级 2c20c9d8
...@@ -22,7 +22,7 @@ public class ClusterService { ...@@ -22,7 +22,7 @@ public class ClusterService {
public ClusterDTO createCluster(Env env, ClusterDTO cluster){ public ClusterDTO createCluster(Env env, ClusterDTO cluster){
if (!clusterAPI.isClusterUnique(cluster.getAppId(), env, cluster.getName())){ 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); return clusterAPI.createOrUpdate(env, cluster);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册