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:
Dean Troyer 2014-03-07 15:34:28 -06:00
parent 808fa65210
commit 27ebdeb57d
1 changed files with 1 additions and 1 deletions

View File

@ -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)))