Skip to content

Commit

Permalink
Fix(typo): fix an spelling mistake in code.
Browse files Browse the repository at this point in the history
Signed-off-by: WhereAreBugs <[email protected]>
  • Loading branch information
WhereAreBugs committed Dec 13, 2023
1 parent fbdb901 commit 5ca54aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/command/cluster/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var (

type addOptions struct {
name string
descriotion string
description string
filename string
deployType string
}
Expand All @@ -80,7 +80,7 @@ func NewAddCommand(curveadm *cli.CurveAdm) *cobra.Command {
}

flags := cmd.Flags()
flags.StringVarP(&options.descriotion, "description", "m", "", "Description for cluster")
flags.StringVarP(&options.description, "description", "m", "", "Description for cluster")
flags.StringVarP(&options.filename, "topology", "f", "", "Specify the path of topology file")
flags.StringVar(&options.deployType, "type", "develop", "Specify the type of cluster")
return cmd
Expand Down Expand Up @@ -185,7 +185,7 @@ func runAdd(curveadm *cli.CurveAdm, options addOptions) error {

// 4) insert cluster (with topology) into database
uuid := uuid.NewString()
err = storage.InsertCluster(name, uuid, options.descriotion, data, options.deployType)
err = storage.InsertCluster(name, uuid, options.description, data, options.deployType)
if err != nil {
return errno.ERR_INSERT_CLUSTER_FAILED.E(err)
}
Expand Down

0 comments on commit 5ca54aa

Please sign in to comment.