Remove links from oauth consumers
This should be the last of the v3 identity objects that return a links section upon create or show. Change-Id: I45a3b43c303bfed73950095bec8860cbea7a559c
This commit is contained in:
parent
070fa5091d
commit
3e97e1775d
@ -46,9 +46,8 @@ class CreateConsumer(show.ShowOne):
|
|||||||
consumer = identity_client.oauth1.consumers.create(
|
consumer = identity_client.oauth1.consumers.create(
|
||||||
parsed_args.description
|
parsed_args.description
|
||||||
)
|
)
|
||||||
info = {}
|
consumer._info.pop('links', None)
|
||||||
info.update(consumer._info)
|
return zip(*sorted(six.iteritems(consumer._info)))
|
||||||
return zip(*sorted(six.iteritems(info)))
|
|
||||||
|
|
||||||
|
|
||||||
class DeleteConsumer(command.Command):
|
class DeleteConsumer(command.Command):
|
||||||
@ -147,6 +146,5 @@ class ShowConsumer(show.ShowOne):
|
|||||||
consumer = utils.find_resource(
|
consumer = utils.find_resource(
|
||||||
identity_client.oauth1.consumers, parsed_args.consumer)
|
identity_client.oauth1.consumers, parsed_args.consumer)
|
||||||
|
|
||||||
info = {}
|
consumer._info.pop('links', None)
|
||||||
info.update(consumer._info)
|
return zip(*sorted(six.iteritems(consumer._info)))
|
||||||
return zip(*sorted(six.iteritems(info)))
|
|
||||||
|
Loading…
Reference in New Issue
Block a user