summaryrefslogtreecommitdiff
path: root/pkg/bindings/errors.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-02-20 11:01:14 -0600
committerBrent Baude <bbaude@redhat.com>2020-02-22 09:43:19 -0600
commita64985c71bbb48652bef1d7a737ff5f7e1ec8fa9 (patch)
treeb9f2c90947ad19a1916e8cdd96542e59fd805f5f /pkg/bindings/errors.go
parent822bf70e454126475e32034b3ce3c660752b99ad (diff)
downloadpodman-a64985c71bbb48652bef1d7a737ff5f7e1ec8fa9.tar.gz
podman-a64985c71bbb48652bef1d7a737ff5f7e1ec8fa9.tar.bz2
podman-a64985c71bbb48652bef1d7a737ff5f7e1ec8fa9.zip
enable ci on go binding tests
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/bindings/errors.go')
-rw-r--r--pkg/bindings/errors.go2
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)
}