diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2010-06-24 04:11:58 +0100 |
|---|---|---|
| committer | andy <github@anarkystic.com> | 2010-06-24 04:11:58 +0100 |
| commit | 9862d03914a60359b7823bc4dec6d5449931dfad (patch) | |
| tree | b6d4935a8bf056ef61d8d83555c3cdecaea63f42 | |
| parent | 933157bdc595b093d89de0da2cca5b021fadf0f6 (diff) | |
fixed reversed filtering logic
| -rw-r--r-- | nova/endpoint/cloud.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/endpoint/cloud.py b/nova/endpoint/cloud.py index 2500a7f6e..fe784164e 100644 --- a/nova/endpoint/cloud.py +++ b/nova/endpoint/cloud.py @@ -173,7 +173,7 @@ class CloudController(object): result = [] for key_pair in key_pairs: # filter out the vpn keys - if not context.user.is_admin() and not key_pair.name.endswith('-key'): + if context.user.is_admin() or not key_pair.name.endswith('-key'): result.append({ 'keyName': key_pair.name, 'keyFingerprint': key_pair.fingerprint, |
