diff options
| author | Zhongyue Luo <zhongyue.nah@intel.com> | 2013-01-31 10:08:11 +0800 |
|---|---|---|
| committer | Zhongyue Luo <zhongyue.nah@intel.com> | 2013-01-31 11:13:06 +0800 |
| commit | e228035f442cf161af39202e931514528d6cab1a (patch) | |
| tree | 4a01956a3a1c24a10c98b23505653aad95eec8e1 /nova/api | |
| parent | 4de4877f74dfcf516d6f76735d6af3c24f3db01c (diff) | |
Fixes "is not" usage
Fixes bug #1110973
Change-Id: I68451ce32f3036e43a2bf1f59a02b392a9e40d6d
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/ec2/cloud.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py index 48b0f632f..632ea668c 100644 --- a/nova/api/ec2/cloud.py +++ b/nova/api/ec2/cloud.py @@ -407,7 +407,7 @@ class CloudController(object): def describe_key_pairs(self, context, key_name=None, **kwargs): key_pairs = self.keypair_api.get_key_pairs(context, context.user_id) - if not key_name is None: + if key_name is not None: key_pairs = [x for x in key_pairs if x['name'] in key_name] #If looking for non existent key pair |
