forked from TrueCloudLab/s3-tests
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
3023080509
commit
651ecd20dd
1 changed files with 3 additions and 0 deletions
|
@ -362,6 +362,9 @@ def configured_storage_classes():
|
|||
if item != 'STANDARD':
|
||||
sc.append(item)
|
||||
|
||||
sc = [i for i in sc if i]
|
||||
print("storage classes configured: " + str(sc))
|
||||
|
||||
return sc
|
||||
|
||||
def lc_transition(days=None, date=None, storage_class=None):
|
||||
|
|
Loading…
Reference in a new issue