File tree Expand file tree Collapse file tree 6 files changed +16
-10
lines changed Expand file tree Collapse file tree 6 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,9 @@ var createCmd = &cobra.Command{
42
42
}
43
43
44
44
return roleapi .Create (roleapi.CreateParams {
45
- API : ecctl .Get ().API ,
46
- Role : & r ,
45
+ API : ecctl .Get ().API ,
46
+ Role : & r ,
47
+ Region : ecctl .Get ().Config .Region ,
47
48
})
48
49
},
49
50
}
Original file line number Diff line number Diff line change @@ -30,8 +30,9 @@ var deleteCmd = &cobra.Command{
30
30
PreRunE : cobra .MinimumNArgs (1 ),
31
31
RunE : func (cmd * cobra.Command , args []string ) error {
32
32
return roleapi .Delete (roleapi.DeleteParams {
33
- API : ecctl .Get ().API ,
34
- ID : args [0 ],
33
+ API : ecctl .Get ().API ,
34
+ ID : args [0 ],
35
+ Region : ecctl .Get ().Config .Region ,
35
36
})
36
37
},
37
38
}
Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ var listCmd = &cobra.Command{
29
29
Short : "Lists the existing platform roles" ,
30
30
PreRunE : cobra .NoArgs ,
31
31
RunE : func (cmd * cobra.Command , args []string ) error {
32
- res , err := roleapi .List (roleapi.ListParams {API : ecctl .Get ().API })
32
+ res , err := roleapi .List (roleapi.ListParams {
33
+ API : ecctl .Get ().API ,
34
+ Region : ecctl .Get ().Config .Region ,
35
+ })
33
36
if err != nil {
34
37
return err
35
38
}
Original file line number Diff line number Diff line change @@ -30,8 +30,9 @@ var showCmd = &cobra.Command{
30
30
PreRunE : cobra .MinimumNArgs (1 ),
31
31
RunE : func (cmd * cobra.Command , args []string ) error {
32
32
res , err := roleapi .Show (roleapi.ShowParams {
33
- API : ecctl .Get ().API ,
34
- ID : args [0 ],
33
+ API : ecctl .Get ().API ,
34
+ ID : args [0 ],
35
+ Region : ecctl .Get ().Config .Region ,
35
36
})
36
37
if err != nil {
37
38
return err
Original file line number Diff line number Diff line change 4
4
5
5
require (
6
6
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a
7
- github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200615012742-6982df8d6b10
7
+ github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200615055322-c662e41de769
8
8
github.com/go-openapi/runtime v0.19.15
9
9
github.com/go-openapi/strfmt v0.19.5
10
10
github.com/pkg/errors v0.9.1
Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZm
59
59
github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954 /go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no =
60
60
github.com/docker/go-units v0.3.3 /go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk =
61
61
github.com/docker/go-units v0.4.0 /go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk =
62
- github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200615012742-6982df8d6b10 h1:FX0SWzcYKYRd/9EbvsPcnzHc2RNJZqitDKOEMYXy8N8 =
63
- github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200615012742-6982df8d6b10 /go.mod h1:+0Q5izB9Upzmolj6Pq4AkTsBwgDbQnNpODp3qFK7erQ =
62
+ github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200615055322-c662e41de769 h1:XoJx1X8VJQFlgvfeHGqLdWz0NJAEYuZzZixEXu6V3wQ =
63
+ github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200615055322-c662e41de769 /go.mod h1:+0Q5izB9Upzmolj6Pq4AkTsBwgDbQnNpODp3qFK7erQ =
64
64
github.com/fatih/color v1.7.0 /go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4 =
65
65
github.com/fatih/color v1.9.0 /go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU =
66
66
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I =
You can’t perform that action at this time.
0 commit comments