Skip to content

Commit e362387

Browse files
WhereAreBugscaoxianfei1
authored andcommitted
Fix(typo): fix an spelling mistake in code.
Signed-off-by: WhereAreBugs <[email protected]>
1 parent 828680a commit e362387

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cli/command/cluster/add.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var (
5656

5757
type addOptions struct {
5858
name string
59-
descriotion string
59+
description string
6060
filename string
6161
deployType string
6262
}
@@ -80,7 +80,7 @@ func NewAddCommand(curveadm *cli.CurveAdm) *cobra.Command {
8080
}
8181

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

186186
// 4) insert cluster (with topology) into database
187187
uuid := uuid.NewString()
188-
err = storage.InsertCluster(name, uuid, options.descriotion, data, options.deployType)
188+
err = storage.InsertCluster(name, uuid, options.description, data, options.deployType)
189189
if err != nil {
190190
return errno.ERR_INSERT_CLUSTER_FAILED.E(err)
191191
}

0 commit comments

Comments
 (0)