diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-02-12 03:47:19 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-02-12 03:47:19 +0000 |
| commit | c27f0739509cc67966ca4d5674ed3f526a76ca60 (patch) | |
| tree | 93fe4e8f53139dfcfec903a9a2e7da060ae895b6 | |
| parent | ee8aa6800c6a2b7571b1b393cf716ebe972ec7d7 (diff) | |
| parent | f8395098a97e456f376386984c2b6239558185e3 (diff) | |
Merge "Fix boto capabilities check"
| -rw-r--r-- | nova/tests/test_api.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nova/tests/test_api.py b/nova/tests/test_api.py index 11c16d6dd..949f54512 100644 --- a/nova/tests/test_api.py +++ b/nova/tests/test_api.py @@ -22,12 +22,13 @@ import random import StringIO import boto +import boto.connection from boto.ec2 import regioninfo from boto import exception as boto_exc # newer versions of boto use their own wrapper on top of httplib.HTTPResponse -try: - import boto.connection as httplib -except ImportError: +if hasattr(boto.connection, 'HTTPResponse'): + httplib = boto.connection +else: import httplib import fixtures import webob |
