Skip to content

Commit e8fde9c

Browse files
change rollout endpoint
1 parent f564aba commit e8fde9c

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.24.1
1+
0.24.2

pkg/codefresh/gitops.go

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,19 +146,11 @@ func (a *gitops) CreateEnvironment(name string, project string, application stri
146146
}
147147

148148
func (a *gitops) SendEnvironment(environment Environment) (map[string]interface{}, error) {
149-
var result map[string]interface{}
150-
resp, err := a.codefresh.requestAPI(&requestOptions{method: "POST", path: "/api/gitops/rollout", body: environment})
149+
_, err := a.codefresh.requestAPI(&requestOptions{method: "POST", path: "/api/gitops/rollout", body: environment})
151150
if err != nil {
152151
return nil, err
153152
}
154-
155-
err = a.codefresh.decodeResponseInto(resp, &result)
156-
157-
if err != nil {
158-
return nil, err
159-
}
160-
161-
return result, nil
153+
return nil, nil
162154
}
163155

164156
func (a *gitops) DeleteEnvironment(name string) error {

0 commit comments

Comments
 (0)