refactored DecodeHeader function to gophercloud package; updated tests
diff --git a/openstack/objectstorage/v1/accounts/results.go b/openstack/objectstorage/v1/accounts/results.go
index 5837e0b..4833a8b 100644
--- a/openstack/objectstorage/v1/accounts/results.go
+++ b/openstack/objectstorage/v1/accounts/results.go
@@ -4,7 +4,6 @@
"strings"
"time"
- "github.com/mitchellh/mapstructure"
"github.com/rackspace/gophercloud"
)
@@ -29,7 +28,7 @@
return uh, ur.Err
}
- if err := mapstructure.Decode(ur.Header, &uh); err != nil {
+ if err := gophercloud.DecodeHeader(ur.Header, &uh); err != nil {
return uh, err
}
@@ -68,7 +67,7 @@
return gh, gr.Err
}
- if err := mapstructure.Decode(gr.Header, &gh); err != nil {
+ if err := gophercloud.DecodeHeader(gr.Header, &gh); err != nil {
return gh, err
}