Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opencurve/curveadm
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f15b840938ffcd1087634da15da565798dda73e0
Choose a base ref
..
head repository: opencurve/curveadm
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b24dd9bfe428abd89dd827b6749934d32d6ad9e3
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +3 −3 cli/command/cluster/add.go
6 changes: 3 additions & 3 deletions cli/command/cluster/add.go
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ var (

type addOptions struct {
name string
descriotion string
description string
filename string
deployType string
}
@@ -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
@@ -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)
}