Skip to content

Commit

Permalink
Merge pull request #45 from seungkyua/20230420_blue_green_image_url
Browse files Browse the repository at this point in the history
change to Put method when promote and abort
  • Loading branch information
seungkyua authored Apr 21, 2023
2 parents bbb13de + 79cfe73 commit 154c484
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/commands/appserve-abort.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ func NewAppserveAbortCmd(globalOpts *GlobalOptions) *cobra.Command {
helper.CheckError(err)

url := fmt.Sprintf("app-serve-apps/%v", appId)
params := conf{Abort: true}
params := conf{Strategy: "blue-green", Abort: true}

body, err := apiClient.Post(url, params)
body, err := apiClient.Put(url, params)
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions internal/commands/appserve-promote.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ func NewAppservePromoteCmd(globalOpts *GlobalOptions) *cobra.Command {
helper.CheckError(err)

url := fmt.Sprintf("app-serve-apps/%v", appId)
params := conf{Promote: true}
params := conf{Strategy: "blue-green", Promote: true}

body, err := apiClient.Post(url, params)
body, err := apiClient.Put(url, params)
if err != nil {
return err
}
Expand Down

0 comments on commit 154c484

Please sign in to comment.