Skip to content

Commit

Permalink
增加未指定云端节点报错提示 (openyurtio#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyhui authored Jun 4, 2021
1 parent f115d83 commit 85beee1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/yurtctl/cmd/convert/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ func (co *ConvertOptions) Complete(flags *pflag.FlagSet) error {
}
if cnStr != "" {
co.CloudNodes = strings.Split(cnStr, ",")
} else {
err := fmt.Errorf("The '--cloud nodes' parameter cannot be empty.Please specify the cloud node first, and then execute the yurtctl convert command")
return err
}

dt, err := flags.GetBool("deploy-yurttunnel")
Expand Down

0 comments on commit 85beee1

Please # to comment.