Merge "user create v2.0 depends on tenantId in response"
This commit is contained in:
commit
b3b59c20d2
@ -99,9 +99,10 @@ class CreateUser(show.ShowOne):
|
||||
# NOTE(dtroyer): The users.create() method wants 'tenant_id' but
|
||||
# the returned resource has 'tenantId'. Sigh.
|
||||
# We're using project_id now inside OSC so there.
|
||||
user._info.update(
|
||||
{'project_id': user._info.pop('tenantId')}
|
||||
)
|
||||
if 'tenantId' in user._info:
|
||||
user._info.update(
|
||||
{'project_id': user._info.pop('tenantId')}
|
||||
)
|
||||
|
||||
info = {}
|
||||
info.update(user._info)
|
||||
|
Loading…
x
Reference in New Issue
Block a user