diff options
| author | Soren Hansen <soren.hansen@rackspace.com> | 2010-07-27 10:30:00 +0200 |
|---|---|---|
| committer | Soren Hansen <soren.hansen@rackspace.com> | 2010-07-27 10:30:00 +0200 |
| commit | 9641dac5d0cbfd8d1f3026e1bae5749b9d8e00fc (patch) | |
| tree | ff91fb606cea7f0c25899d88ab6703cda88cbf27 /nova | |
| parent | 69cbb1ac3559c44f6640939cd2e1db64e82073fe (diff) | |
Ensure that boto's config has a "Boto" section before attempting to set
a value in it.
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/tests/objectstore_unittest.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/tests/objectstore_unittest.py b/nova/tests/objectstore_unittest.py index 0a2f54031..20053a258 100644 --- a/nova/tests/objectstore_unittest.py +++ b/nova/tests/objectstore_unittest.py @@ -189,6 +189,8 @@ class S3APITestCase(test.TrialTestCase): self.tcp_port = self.listening_port.getHost().port + if not boto.config.has_section('Boto'): + boto.config.add_section('Boto') boto.config.set('Boto', 'num_retries', '0') self.conn = S3Connection(aws_access_key_id='admin', aws_secret_access_key='admin', |
