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
This commit is contained in:
parent
808fa65210
commit
27ebdeb57d
@ -146,7 +146,7 @@ class ShowKeypair(show.ShowOne):
|
||||
parsed_args.name)
|
||||
|
||||
info = {}
|
||||
info.update(keypair._info['keypair'])
|
||||
info.update(keypair._info)
|
||||
if not parsed_args.public_key:
|
||||
del info['public_key']
|
||||
return zip(*sorted(six.iteritems(info)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user