diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-24 17:25:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 17:25:22 +0100 |
commit | afd5cbff1e147bdad200b47fb2bd0992684c7fd4 (patch) | |
tree | aacbfe34d019562676f5edf81d9c4956b8618ae6 /pkg/bindings/errors.go | |
parent | 2602083f6282b13407569ce8df593fd7703442e0 (diff) | |
parent | a64985c71bbb48652bef1d7a737ff5f7e1ec8fa9 (diff) | |
download | podman-afd5cbff1e147bdad200b47fb2bd0992684c7fd4.tar.gz podman-afd5cbff1e147bdad200b47fb2bd0992684c7fd4.tar.bz2 podman-afd5cbff1e147bdad200b47fb2bd0992684c7fd4.zip |
Merge pull request #5281 from baude/bindingsci
enable ci on go binding tests
Diffstat (limited to 'pkg/bindings/errors.go')
-rw-r--r-- | pkg/bindings/errors.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/errors.go b/pkg/bindings/errors.go index 1bcaac3f0..5fa711199 100644 --- a/pkg/bindings/errors.go +++ b/pkg/bindings/errors.go @@ -25,7 +25,7 @@ func (a APIResponse) Process(unmarshalInto interface{}) error { if err != nil { return errors.Wrap(err, "unable to process API response") } - if a.IsSuccess() { + if a.IsSuccess() || a.IsRedirection() { if unmarshalInto != nil { return json.Unmarshal(data, unmarshalInto) } |