Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiaojun629 committed Mar 27, 2019
1 parent 0785c3e commit b39a225
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export VERSION=0.1.13
export VERSION=0.1.14

.PHONY : build
build:
Expand Down
2 changes: 1 addition & 1 deletion base/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const DefaultBaseURL = "https://api.ucloud.cn/"
const DefaultProfile = "default"

//Version 版本号
const Version = "0.1.13"
const Version = "0.1.14"

//ConfigIns 配置实例, 程序加载时生成
var ConfigIns = &AggConfig{}
Expand Down
6 changes: 1 addition & 5 deletions cmd/uhost.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ func NewCmdUHostCreate(out io.Writer) *cobra.Command {
Short: "Create UHost instance",
Long: "Create UHost instance",
Run: func(cmd *cobra.Command, args []string) {
if count > 100 || count < 1 {
fmt.Fprintln(out, "count should be between 1 and 100")
return
}
*req.Memory *= 1024
req.LoginMode = sdk.String("Password")
req.ImageId = sdk.String(base.PickResourceID(*req.ImageId))
Expand Down Expand Up @@ -229,7 +225,7 @@ func NewCmdUHostCreate(out io.Writer) *cobra.Command {
flags.StringVar(&password, "password", "", "Required. Password of the uhost user(root/ubuntu)")
req.ImageId = flags.String("image-id", "", "Required. The ID of image. see 'ucloud image list'")
flags.BoolVar(&async, "async", false, "Optional. Do not wait for the long-running operation to finish.")
flags.IntVar(&count, "count", 1, "Optional. Number of uhost to create. Range [1,100]")
flags.IntVar(&count, "count", 1, "Optional. Number of uhost to create.")
req.VPCId = flags.String("vpc-id", "", "Optional. VPC ID. This field is required under VPC2.0. See 'ucloud vpc list'")
req.SubnetId = flags.String("subnet-id", "", "Optional. Subnet ID. This field is required under VPC2.0. See 'ucloud subnet list'")
req.Name = flags.String("name", "UHost", "Optional. UHost instance name")
Expand Down

0 comments on commit b39a225

Please sign in to comment.