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 7, 2023
1 parent 4d99c3d commit 85b2808
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 85b2808

Please sign in to comment.