Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 46b1c59

Browse files
author
Mathieu Velten
committed
Fix generation of auth json map when using a trust id.
1 parent 0d85999 commit 46b1c59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openstack/identity/v3/extensions/trust/request.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ func (ao AuthOptionsExt) ToAuthOptionsV3Map(c *gophercloud.ServiceClient, scope
1717
if err != nil {
1818
return nil, err
1919
}
20+
authMap = authMap["auth"].(map[string]interface{})
2021

2122
// Add a "scope" element if a Scope has been provided.
2223
if ao.TrustID != "" {
@@ -29,7 +30,7 @@ func (ao AuthOptionsExt) ToAuthOptionsV3Map(c *gophercloud.ServiceClient, scope
2930
} else {
3031
return nil, token3.ErrScopeEmpty
3132
}
32-
return authMap, nil
33+
return map[string]interface{}{"auth": authMap}, nil
3334
}
3435

3536
// AuthenticateV3 explicitly authenticates against the identity v3 service.

0 commit comments

Comments
 (0)