]> git.apps.os.sepia.ceph.com Git - s3-tests.git/commitdiff
boto2: copy configured_storage_classes() fix from boto3 525/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 21 Sep 2023 21:42:58 +0000 (17:42 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 21 Sep 2023 21:44:59 +0000 (17:44 -0400)
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>
s3tests/functional/test_s3.py

index 0496f3a6faff4542d812317c2b7f8da7a03b17b9..9072c80ce893f3c2bbd184914bb471164fb4731a 100644 (file)
@@ -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):