mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 07:20:45 +00:00
Merge "Mention 2.51 in help for openstack server event show"
This commit is contained in:
commit
b83c6dc26a
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue