Merge "user create v2.0 depends on tenantId in response"

This commit is contained in:
Jenkins 2014-08-07 20:26:07 +00:00 committed by Gerrit Code Review
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)