diff --git a/moto/s3/responses.py b/moto/s3/responses.py index 3fa793f25..71f21c8e1 100644 --- a/moto/s3/responses.py +++ b/moto/s3/responses.py @@ -1491,7 +1491,9 @@ S3_ALL_BUCKETS = """ {{ bucket.name }} + {% if prefix != None %} {{ prefix }} + {% endif %} {{ max_keys }} {{ delimiter }} {{ is_truncated }} @@ -1523,7 +1525,9 @@ S3_BUCKET_GET_RESPONSE = """ S3_BUCKET_GET_RESPONSE_V2 = """ {{ bucket.name }} +{% if prefix != None %} {{ prefix }} +{% endif %} {{ max_keys }} {{ key_count }} {% if delimiter %} @@ -1684,7 +1688,9 @@ S3_BUCKET_GET_VERSIONING = """ S3_BUCKET_GET_VERSIONS = """ {{ bucket.name }} + {% if prefix != None %} {{ prefix }} + {% endif %} {{ key_marker }} {{ max_keys }} {{ is_truncated }}