Skip to content

Commit

Permalink
fix: fix connect nebula error (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
1aal authored Jan 11, 2024
1 parent f26f982 commit 3366808
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/cmd/cluster/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,7 @@ func (o *ConnectOptions) checkUnsupportedEngine() error {
engineType = o.componentDefV2.Labels[types.AddonNameLabelKey]
}
if o.targetClusterDef != nil && engineType == "" {
engineType = o.targetClusterDef.Labels[types.AddonNameLabelKey]
if engineType == "" {
// try old label
engineType = o.targetClusterDef.Labels[constant.AppNameLabelKey]
}
engineType = o.targetClusterDef.Name
}
if engineType == "" {
return fmt.Errorf("fail to get the target engine type")
Expand Down

0 comments on commit 3366808

Please sign in to comment.