From 27ebdeb57dd78564770ef92b95bc659b25e10a69 Mon Sep 17 00:00:00 2001
From: Dean Troyer <dtroyer@gmail.com>
Date: Fri, 7 Mar 2014 15:34:28 -0600
Subject: [PATCH] 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
---
 openstackclient/compute/v2/keypair.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openstackclient/compute/v2/keypair.py b/openstackclient/compute/v2/keypair.py
index d68dae0643..8a91f68208 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)))