mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 23:29:47 +00:00
boto2: copy configured_storage_classes() fix from boto3
some boto2 storage class tests are failing because the list returned by configured_storage_classes() included an empty string the boto3 version had an extra line that removes empty values; copy that for boto2 Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
b1efd0477a
commit
e54f0a4508
1 changed files with 3 additions and 0 deletions
|
@ -362,6 +362,9 @@ def configured_storage_classes():
|
||||||
if item != 'STANDARD':
|
if item != 'STANDARD':
|
||||||
sc.append(item)
|
sc.append(item)
|
||||||
|
|
||||||
|
sc = [i for i in sc if i]
|
||||||
|
print("storage classes configured: " + str(sc))
|
||||||
|
|
||||||
return sc
|
return sc
|
||||||
|
|
||||||
def lc_transition(days=None, date=None, storage_class=None):
|
def lc_transition(days=None, date=None, storage_class=None):
|
||||||
|
|
Loading…
Reference in a new issue