File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ var stackShowCmd = &cobra.Command{
52
52
RunE : func (cmd * cobra.Command , args []string ) error {
53
53
s , err := stackapi .Get (stackapi.GetParams {
54
54
API : ecctl .Get ().API ,
55
+ Region : ecctl .Get ().Config .Region ,
55
56
Version : args [0 ],
56
57
})
57
58
if err != nil {
@@ -66,6 +67,7 @@ func listStackPacks(cmd *cobra.Command, args []string) error {
66
67
deleted , _ := cmd .Flags ().GetBool ("deleted" )
67
68
s , err := stackapi .List (stackapi.ListParams {
68
69
API : ecctl .Get ().API ,
70
+ Region : ecctl .Get ().Config .Region ,
69
71
Deleted : deleted ,
70
72
})
71
73
if err != nil {
@@ -89,6 +91,7 @@ var stackUploadCmd = &cobra.Command{
89
91
90
92
return stackapi .Upload (stackapi.UploadParams {
91
93
API : ecctl .Get ().API ,
94
+ Region : ecctl .Get ().Config .Region ,
92
95
StackPack : f ,
93
96
})
94
97
},
@@ -102,6 +105,7 @@ var stackDeleteCmd = &cobra.Command{
102
105
RunE : func (cmd * cobra.Command , args []string ) error {
103
106
return stackapi .Delete (stackapi.DeleteParams {
104
107
API : ecctl .Get ().API ,
108
+ Region : ecctl .Get ().Config .Region ,
105
109
Version : args [0 ],
106
110
})
107
111
},
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.20200610061007-5771a049905a
7
+ github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610080731-ecad4ea9c617
8
8
github.com/go-openapi/runtime v0.19.15
9
9
github.com/go-openapi/strfmt v0.19.5
10
10
github.com/hashicorp/go-multierror v1.0.0
Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDD
61
61
github.com/docker/go-units v0.4.0 /go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk =
62
62
github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610014412-d8bc0d1b9b30 h1:KlJmjQ5ZehOnYtffQ4/7vspv8rg47cckF2+etZ7MAgY =
63
63
github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610014412-d8bc0d1b9b30 /go.mod h1:+0Q5izB9Upzmolj6Pq4AkTsBwgDbQnNpODp3qFK7erQ =
64
- github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610061007-5771a049905a h1:Kt6uMlo1rtMXpHEHZBrkI1BGnTcHQhLyXloCj+jWKqI =
65
- github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610061007-5771a049905a /go.mod h1:+0Q5izB9Upzmolj6Pq4AkTsBwgDbQnNpODp3qFK7erQ =
64
+ github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610080731-ecad4ea9c617 h1:y3zhClgtQaEZcnKpVQR0anI8LxbH6DL1swgju/flnpU =
65
+ github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610080731-ecad4ea9c617 /go.mod h1:+0Q5izB9Upzmolj6Pq4AkTsBwgDbQnNpODp3qFK7erQ =
66
66
github.com/fatih/color v1.7.0 /go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4 =
67
67
github.com/fatih/color v1.9.0 /go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU =
68
68
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I =
You can’t perform that action at this time.
0 commit comments