Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cmd/platform/stack/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ var stackShowCmd = &cobra.Command{
RunE: func(cmd *cobra.Command, args []string) error {
s, err := stackapi.Get(stackapi.GetParams{
API: ecctl.Get().API,
Region: ecctl.Get().Config.Region,
Version: args[0],
})
if err != nil {
Expand All @@ -66,6 +67,7 @@ func listStackPacks(cmd *cobra.Command, args []string) error {
deleted, _ := cmd.Flags().GetBool("deleted")
s, err := stackapi.List(stackapi.ListParams{
API: ecctl.Get().API,
Region: ecctl.Get().Config.Region,
Deleted: deleted,
})
if err != nil {
Expand All @@ -89,6 +91,7 @@ var stackUploadCmd = &cobra.Command{

return stackapi.Upload(stackapi.UploadParams{
API: ecctl.Get().API,
Region: ecctl.Get().Config.Region,
StackPack: f,
})
},
Expand All @@ -102,6 +105,7 @@ var stackDeleteCmd = &cobra.Command{
RunE: func(cmd *cobra.Command, args []string) error {
return stackapi.Delete(stackapi.DeleteParams{
API: ecctl.Get().API,
Region: ecctl.Get().Config.Region,
Version: args[0],
})
},
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.12

require (
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a
github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610061007-5771a049905a
github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610080731-ecad4ea9c617
github.com/go-openapi/runtime v0.19.15
github.com/go-openapi/strfmt v0.19.5
github.com/hashicorp/go-multierror v1.0.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDD
github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610014412-d8bc0d1b9b30 h1:KlJmjQ5ZehOnYtffQ4/7vspv8rg47cckF2+etZ7MAgY=
github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610014412-d8bc0d1b9b30/go.mod h1:+0Q5izB9Upzmolj6Pq4AkTsBwgDbQnNpODp3qFK7erQ=
github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610061007-5771a049905a h1:Kt6uMlo1rtMXpHEHZBrkI1BGnTcHQhLyXloCj+jWKqI=
github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610061007-5771a049905a/go.mod h1:+0Q5izB9Upzmolj6Pq4AkTsBwgDbQnNpODp3qFK7erQ=
github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610080731-ecad4ea9c617 h1:y3zhClgtQaEZcnKpVQR0anI8LxbH6DL1swgju/flnpU=
github.com/elastic/cloud-sdk-go v1.0.0-beta3.0.20200610080731-ecad4ea9c617/go.mod h1:+0Q5izB9Upzmolj6Pq4AkTsBwgDbQnNpODp3qFK7erQ=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
Expand Down