Skip to content

Commit

Permalink
change rollout endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-codefresh committed Apr 1, 2021
1 parent f564aba commit e8fde9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.24.1
0.24.2
12 changes: 2 additions & 10 deletions pkg/codefresh/gitops.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,11 @@ func (a *gitops) CreateEnvironment(name string, project string, application stri
}

func (a *gitops) SendEnvironment(environment Environment) (map[string]interface{}, error) {
var result map[string]interface{}
resp, err := a.codefresh.requestAPI(&requestOptions{method: "POST", path: "/api/gitops/rollout", body: environment})
_, err := a.codefresh.requestAPI(&requestOptions{method: "POST", path: "/api/gitops/rollout", body: environment})
if err != nil {
return nil, err
}

err = a.codefresh.decodeResponseInto(resp, &result)

if err != nil {
return nil, err
}

return result, nil
return nil, nil
}

func (a *gitops) DeleteEnvironment(name string) error {
Expand Down

0 comments on commit e8fde9c

Please sign in to comment.