Skip to content

Commit edc9f2b

Browse files
authored
Merge pull request #49 from lixiaojun629/develop
fixbug, password missed when creating redis
2 parents 9664593 + 8394a84 commit edc9f2b

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export VERSION=0.1.30
1+
export VERSION=0.1.31
22

33
.PHONY : install
44
install:

base/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const DefaultBaseURL = "https://api.ucloud.cn/"
3636
const DefaultProfile = "default"
3737

3838
//Version 版本号
39-
const Version = "0.1.30"
39+
const Version = "0.1.31"
4040

4141
//ConfigIns 配置实例, 程序加载时生成
4242
var ConfigIns = &AggConfig{

cmd/eip.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ func NewCmdEIPModifyBandwidth() *cobra.Command {
470470
Use: "modify-bw",
471471
Short: "Modify bandwith of EIP instances",
472472
Long: "Modify bandwith of EIP instances",
473-
Example: "ucloud eip modify-bw --eip-id eip-xxx --bandwidth-mb 20",
473+
Example: "ucloud eip modify-bw --eip-id eip-xx1,eip-xx2 --bandwidth-mb 20",
474474
// Deprecated: "use 'ucloud eip modiy'",
475475
Run: func(cmd *cobra.Command, args []string) {
476476
for _, id := range ids {

cmd/umem.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ func NewCmdRedisCreate(out io.Writer) *cobra.Command {
167167
fmt.Fprintln(out, "length of name should be between 6 and 63")
168168
return
169169
}
170+
if password != "" {
171+
req.Password = &password
172+
}
170173
if redisType == "master-replica" {
171174
resp, err := base.BizClient.CreateURedisGroup(req)
172175
if err != nil {

0 commit comments

Comments
 (0)