Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
Signed-off-by: WhereAreBugs <[email protected]>
  • Loading branch information
WhereAreBugs committed Nov 24, 2023
1 parent c7d0232 commit f8fb03f
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 @@ -77,7 +77,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.StringVarP(&options.deployType, "deploy-type", "t", "develop", "Specify the deploy type of cluster")
return cmd
Expand Down Expand Up @@ -184,7 +184,7 @@ func runAdd(curveadm *cli.CurveAdm, options addOptions) error {

// 5) 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 f8fb03f

Please sign in to comment.