diff options
| author | Masanori Itoh <itoumsn@nttdata.co.jp> | 2011-03-03 17:10:15 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-03-03 17:10:15 +0000 |
| commit | 458bf9682df0514a7f180f1ab1566bb7846cd281 (patch) | |
| tree | 33d6682e5212551336f41e4abcb3cc1752144d18 /nova | |
| parent | 90e8072df434621a364763f1c7cae0ac0159d630 (diff) | |
| parent | cb9d00f82cc59378312124a5a889b37890856df8 (diff) | |
| download | nova-458bf9682df0514a7f180f1ab1566bb7846cd281.tar.gz nova-458bf9682df0514a7f180f1ab1566bb7846cd281.tar.xz nova-458bf9682df0514a7f180f1ab1566bb7846cd281.zip | |
This fix changes a tag contained in the DescribeKeyPairs response from <keypairsSet> to <keySet> so that Amazon EC2 access libraries which does more strict syntax checking can work with Nova.
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/api/ec2/cloud.py | 2 | ||||
| -rw-r--r-- | nova/tests/test_cloud.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py index 844ccbe5e..c6309f03c 100644 --- a/nova/api/ec2/cloud.py +++ b/nova/api/ec2/cloud.py @@ -298,7 +298,7 @@ class CloudController(object): 'keyFingerprint': key_pair['fingerprint'], }) - return {'keypairsSet': result} + return {'keySet': result} def create_key_pair(self, context, key_name, **kwargs): LOG.audit(_("Create key pair %s"), key_name, context=context) diff --git a/nova/tests/test_cloud.py b/nova/tests/test_cloud.py index 061910013..b195fa520 100644 --- a/nova/tests/test_cloud.py +++ b/nova/tests/test_cloud.py @@ -267,7 +267,7 @@ class CloudTestCase(test.TestCase): self._create_key('test1') self._create_key('test2') result = self.cloud.describe_key_pairs(self.context) - keys = result["keypairsSet"] + keys = result["keySet"] self.assertTrue(filter(lambda k: k['keyName'] == 'test1', keys)) self.assertTrue(filter(lambda k: k['keyName'] == 'test2', keys)) |
