Mention 2.51 in help for openstack server event show
With the 2.51 compute API microversion, non-admin users can also see event details for a given request. This change mentions that in the help text for "openstack server event show". While in here, change the _info private attribute access to the to_dict() usage. Change-Id: I5fd487b17c4b85bd7e619112ad262ffdd3a940c8 Task: 21199 Story: 2002193
This commit is contained in:
parent
e8c731547d
commit
577e2e850c
@ -91,7 +91,9 @@ class ListServerEvent(command.Lister):
|
||||
|
||||
|
||||
class ShowServerEvent(command.ShowOne):
|
||||
_description = _("Show server event details")
|
||||
_description = _(
|
||||
"Show server event details. Specify ``--os-compute-api-version 2.51`` "
|
||||
"or higher to show events for non-admin users.")
|
||||
|
||||
def get_parser(self, prog_name):
|
||||
parser = super(ShowServerEvent, self).get_parser(prog_name)
|
||||
@ -114,4 +116,4 @@ class ShowServerEvent(command.ShowOne):
|
||||
action_detail = compute_client.instance_action.get(
|
||||
server_id, parsed_args.request_id)
|
||||
|
||||
return zip(*sorted(six.iteritems(action_detail._info)))
|
||||
return zip(*sorted(six.iteritems(action_detail.to_dict())))
|
||||
|
Loading…
Reference in New Issue
Block a user