Unit test the tenants List call.
diff --git a/openstack/identity/v2/tenants/results.go b/openstack/identity/v2/tenants/results.go
index e4e3f47..e4bd535 100644
--- a/openstack/identity/v2/tenants/results.go
+++ b/openstack/identity/v2/tenants/results.go
@@ -1,6 +1,8 @@
package tenants
import (
+ "fmt"
+
"github.com/mitchellh/mapstructure"
"github.com/rackspace/gophercloud/pagination"
)
@@ -70,6 +72,7 @@
Tenants []Tenant `mapstructure:"tenants"`
}
+ fmt.Printf("Decode %#v => %#v\n", casted, response)
err := mapstructure.Decode(casted, &response)
return response.Tenants, err
}