Skip to content

Commit

Permalink
Error when creating a NodeGroup with the same name in a different clu…
Browse files Browse the repository at this point in the history
…ster.(#1028)
  • Loading branch information
powerkimhub committed Oct 2, 2024
1 parent 439e98c commit 47f2936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-runtime/common-runtime/ClusterManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ func AddNodeGroup(connectionName string, rsType string, clusterName string, reqI

// (1) check exist(NameID)
var ngIIdInfoList []*NodeGroupIIDInfo
err = infostore.ListByCondition(&ngIIdInfoList, CONNECTION_NAME_COLUMN, connectionName)
err = infostore.ListByConditions(&ngIIdInfoList, CONNECTION_NAME_COLUMN, connectionName, OWNER_CLUSTER_NAME_COLUMN, clusterName)
if err != nil {
cblog.Error(err)
return nil, err
Expand Down

0 comments on commit 47f2936

Please sign in to comment.