mirror of
https://github.com/ceph/s3-tests.git
synced 2025-02-16 11:16:31 +00:00
Cleanup: don't look before you leap.
This commit is contained in:
parent
016febc40a
commit
deb898161b
1 changed files with 1 additions and 4 deletions
|
@ -92,10 +92,7 @@ def setup():
|
||||||
if 'fixtures' not in config:
|
if 'fixtures' not in config:
|
||||||
raise RuntimeError('Your config file is missing the fixtures section!')
|
raise RuntimeError('Your config file is missing the fixtures section!')
|
||||||
|
|
||||||
if config.fixtures.has_key('bucket prefix'):
|
template = config.fixtures.get('bucket prefix', 'test-{random}-')
|
||||||
template = config.fixtures['bucket prefix']
|
|
||||||
else:
|
|
||||||
template = 'test-{random}-'
|
|
||||||
prefix = choose_bucket_prefix(template=template)
|
prefix = choose_bucket_prefix(template=template)
|
||||||
if prefix == '':
|
if prefix == '':
|
||||||
raise RuntimeError("Empty Prefix! Aborting!")
|
raise RuntimeError("Empty Prefix! Aborting!")
|
||||||
|
|
Loading…
Add table
Reference in a new issue