diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2014-03-07 15:34:28 -0600 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2014-03-07 15:34:31 -0600 |
| commit | 27ebdeb57dd78564770ef92b95bc659b25e10a69 (patch) | |
| tree | 874d65aec16bee87c27230aa160f18fc87e6604f /openstackclient/compute/v2/keypair.py | |
| parent | 808fa652109e8d0141f88b258df05874e6676d98 (diff) | |
| download | python-openstackclient-27ebdeb57dd78564770ef92b95bc659b25e10a69.tar.gz | |
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
Diffstat (limited to 'openstackclient/compute/v2/keypair.py')
| -rw-r--r-- | openstackclient/compute/v2/keypair.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/compute/v2/keypair.py b/openstackclient/compute/v2/keypair.py index d68dae06..8a91f682 100644 --- a/openstackclient/compute/v2/keypair.py +++ b/openstackclient/compute/v2/keypair.py @@ -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))) |
