Skip to content

Commit 27ebdeb

Browse files
author
Dean Troyer
committed
Fix 'keypair show' command output
The attempt to get the data dict out of the keypair resource object uses a key 'keypair. This is incorrect, no key is required. Closes-Bug: 1289594 Change-Id: I7887119c1d800d389cb6f63ea7847bea1e25bb52
1 parent 808fa65 commit 27ebdeb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎openstackclient/compute/v2/keypair.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def take_action(self, parsed_args):
146146
parsed_args.name)
147147

148148
info = {}
149-
info.update(keypair._info['keypair'])
149+
info.update(keypair._info)
150150
if not parsed_args.public_key:
151151
del info['public_key']
152152
return zip(*sorted(six.iteritems(info)))

0 commit comments

Comments
 (0)