From e8fde9c5d18f0f8a82d333cb291ead2e25c65236 Mon Sep 17 00:00:00 2001 From: pashavictorovich Date: Thu, 1 Apr 2021 16:44:07 +0300 Subject: [PATCH] change rollout endpoint --- VERSION | 2 +- pkg/codefresh/gitops.go | 12 ++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/VERSION b/VERSION index 48b91fd..8b95abd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.24.1 +0.24.2 diff --git a/pkg/codefresh/gitops.go b/pkg/codefresh/gitops.go index 7f2e210..1eeed79 100644 --- a/pkg/codefresh/gitops.go +++ b/pkg/codefresh/gitops.go @@ -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 {