testing identity extensions
diff --git a/openstack/identity/extensions.go b/openstack/identity/extensions.go
index cfd8f24..e769f1c 100644
--- a/openstack/identity/extensions.go
+++ b/openstack/identity/extensions.go
@@ -1,6 +1,7 @@
package identity
import (
+ "fmt"
"github.com/mitchellh/mapstructure"
)
@@ -63,11 +64,21 @@
}
func extensions(er ExtensionsResult) ([]interface{}, error) {
- e, ok := er["extensions"]
+ ei, ok := er["extensions"]
+ fmt.Printf("%+v\n\n", ei)
if !ok {
return nil, ErrNotImplemented
}
- return e.([]interface{}), nil
+ e := ei.(map[string]interface{})
+ //e := ei.([]interface{})
+ vi, ok := e["values"]
+ fmt.Printf("%+v\n\n", e)
+ if !ok {
+ return nil, ErrNotImplemented
+ }
+ v := vi.([]interface{})
+ return v, nil
+ //return e, nil
}
// Aliases returns the set of extension handles, or "aliases" as OpenStack calls them.