diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-05-22 15:47:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-22 15:47:33 +0200 |
commit | cf5d33807ffefb4738d6f2477c08f4955ff630ba (patch) | |
tree | 3f4ddac1d62cefbb88d63e0ab2a8c940482b3d92 /pkg/bindings | |
parent | 8fe0e294b5ba234554960c1355b74c70babafec0 (diff) | |
parent | f7dd915acccd42208edb2d7630f8f3dd48c7ec10 (diff) | |
download | podman-cf5d33807ffefb4738d6f2477c08f4955ff630ba.tar.gz podman-cf5d33807ffefb4738d6f2477c08f4955ff630ba.tar.bz2 podman-cf5d33807ffefb4738d6f2477c08f4955ff630ba.zip |
Merge pull request #6345 from QiWang19/mani-push-test
remote manifest test
Diffstat (limited to 'pkg/bindings')
-rw-r--r-- | pkg/bindings/manifests/manifests.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/bindings/manifests/manifests.go b/pkg/bindings/manifests/manifests.go index 3e0ef0325..f5ee31d93 100644 --- a/pkg/bindings/manifests/manifests.go +++ b/pkg/bindings/manifests/manifests.go @@ -112,17 +112,17 @@ func Push(ctx context.Context, name string, destination *string, all *bool) (str params := url.Values{} params.Set("image", name) if destination != nil { - dest = name + dest = *destination } params.Set("destination", dest) if all != nil { params.Set("all", strconv.FormatBool(*all)) } - response, err := conn.DoRequest(nil, http.MethodPost, "/manifests/%s/push", params, name) + _, err = conn.DoRequest(nil, http.MethodPost, "/manifests/%s/push", params, name) if err != nil { return "", err } - return idr.ID, response.Process(&idr) + return idr.ID, err } // There is NO annotate endpoint. this binding could never work |