File tree Expand file tree Collapse file tree 6 files changed +18
-19
lines changed Expand file tree Collapse file tree 6 files changed +18
-19
lines changed 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 runners" ,
30
30
PreRunE : cobra .NoArgs ,
31
31
RunE : func (cmd * cobra.Command , args []string ) error {
32
- res , err := runnerapi .List (runnerapi.Params {API : ecctl .Get ().API })
32
+ res , err := runnerapi .List (runnerapi.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 @@ -36,8 +36,9 @@ var resyncRunnerCmd = &cobra.Command{
36
36
37
37
if all {
38
38
fmt .Println ("Resynchronizing all runners" )
39
- res , err := runnerapi .ResyncAll (runnerapi.Params {
40
- API : ecctl .Get ().API ,
39
+ res , err := runnerapi .ResyncAll (runnerapi.ResyncAllParams {
40
+ API : ecctl .Get ().API ,
41
+ Region : ecctl .Get ().Config .Region ,
41
42
})
42
43
if err != nil {
43
44
return err
@@ -48,10 +49,9 @@ var resyncRunnerCmd = &cobra.Command{
48
49
49
50
fmt .Printf ("Resynchronizing runner: %s\n " , args [0 ])
50
51
return runnerapi .Resync (runnerapi.ResyncParams {
51
- Params : runnerapi.Params {
52
- API : ecctl .Get ().API ,
53
- },
54
- ID : args [0 ],
52
+ API : ecctl .Get ().API ,
53
+ Region : ecctl .Get ().Config .Region ,
54
+ ID : args [0 ],
55
55
})
56
56
},
57
57
}
Original file line number Diff line number Diff line change @@ -67,9 +67,8 @@ var searchCmd = &cobra.Command{
67
67
68
68
r , err := runnerapi .Search (
69
69
runnerapi.SearchParams {
70
- Params : runnerapi.Params {
71
- API : ecctl .Get ().API ,
72
- },
70
+ API : ecctl .Get ().API ,
71
+ Region : ecctl .Get ().Config .Region ,
73
72
Request : sr ,
74
73
})
75
74
if err != nil {
Original file line number Diff line number Diff line change @@ -30,10 +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 := runnerapi .Show (runnerapi.ShowParams {
33
- Params : runnerapi.Params {
34
- API : ecctl .Get ().API ,
35
- },
36
- ID : args [0 ],
33
+ API : ecctl .Get ().API ,
34
+ Region : ecctl .Get ().Config .Region ,
35
+ ID : args [0 ],
37
36
})
38
37
if err != nil {
39
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.20200612072516-470a54b2a398
7
+ github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200615012742-6982df8d6b10
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,10 +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.20200611025421-9b8340580ba3 h1:SdgBG2g5oH05SogNFHvJIRtjfye9Ay4GcEaDIr9n5YE =
63
- github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200611025421-9b8340580ba3 /go.mod h1:+0Q5izB9Upzmolj6Pq4AkTsBwgDbQnNpODp3qFK7erQ =
64
- github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200612072516-470a54b2a398 h1:BGHVBeUGVprGfKdByL+jBLc5Zmf6KScIJaIHFTbTglc =
65
- github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200612072516-470a54b2a398 /go.mod h1:+0Q5izB9Upzmolj6Pq4AkTsBwgDbQnNpODp3qFK7erQ =
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 =
66
64
github.com/fatih/color v1.7.0 /go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4 =
67
65
github.com/fatih/color v1.9.0 /go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU =
68
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