Skip to content

Commit 577e2e8

Browse files
committed
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
1 parent e8c7315 commit 577e2e8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

openstackclient/compute/v2/server_event.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ def take_action(self, parsed_args):
9191

9292

9393
class ShowServerEvent(command.ShowOne):
94-
_description = _("Show server event details")
94+
_description = _(
95+
"Show server event details. Specify ``--os-compute-api-version 2.51`` "
96+
"or higher to show events for non-admin users.")
9597

9698
def get_parser(self, prog_name):
9799
parser = super(ShowServerEvent, self).get_parser(prog_name)
@@ -114,4 +116,4 @@ def take_action(self, parsed_args):
114116
action_detail = compute_client.instance_action.get(
115117
server_id, parsed_args.request_id)
116118

117-
return zip(*sorted(six.iteritems(action_detail._info)))
119+
return zip(*sorted(six.iteritems(action_detail.to_dict())))

0 commit comments

Comments
 (0)