Safely pop project parent id
Since we don't support multitenancy yet, we should just pop the parent id of a project. When keystoneclient supports mulittenancy we should bring everything in at once (CRUD), and these changes should be removed. Change-Id: I82c7c825502124a24ccdbadf09ecb2748887ca5d
This commit is contained in:
parent
cc54f989ec
commit
13672123fc
openstackclient/identity
@ -98,9 +98,9 @@ class CreateProject(show.ShowOne):
|
||||
else:
|
||||
raise e
|
||||
|
||||
info = {}
|
||||
info.update(project._info)
|
||||
return zip(*sorted(six.iteritems(info)))
|
||||
# TODO(stevemar): Remove the line below when we support multitenancy
|
||||
project._info.pop('parent_id', None)
|
||||
return zip(*sorted(six.iteritems(project._info)))
|
||||
|
||||
|
||||
class DeleteProject(command.Command):
|
||||
@ -279,4 +279,6 @@ class ShowProject(show.ShowOne):
|
||||
else:
|
||||
raise e
|
||||
|
||||
# TODO(stevemar): Remove the line below when we support multitenancy
|
||||
info.pop('parent_id', None)
|
||||
return zip(*sorted(six.iteritems(info)))
|
||||
|
@ -111,6 +111,8 @@ class CreateProject(show.ShowOne):
|
||||
raise e
|
||||
|
||||
project._info.pop('links')
|
||||
# TODO(stevemar): Remove the line below when we support multitenancy
|
||||
project._info.pop('parent_id', None)
|
||||
return zip(*sorted(six.iteritems(project._info)))
|
||||
|
||||
|
||||
@ -325,4 +327,6 @@ class ShowProject(show.ShowOne):
|
||||
parsed_args.project)
|
||||
|
||||
project._info.pop('links')
|
||||
# TODO(stevemar): Remove the line below when we support multitenancy
|
||||
project._info.pop('parent_id', None)
|
||||
return zip(*sorted(six.iteritems(project._info)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user