S3_BUCKET_VERSIONING and S3_BUCKET_GET_VERSIONING were generating invalid XML, as the '<?xml version="1.0" encoding="UTF-8"?>' bit must be on the first line.
This commit is contained in:
parent
77af26987f
commit
5cc8f9ed21
@ -551,15 +551,13 @@ S3_BUCKET_LIFECYCLE_CONFIGURATION = """<?xml version="1.0" encoding="UTF-8"?>
|
|||||||
</LifecycleConfiguration>
|
</LifecycleConfiguration>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
S3_BUCKET_VERSIONING = """
|
S3_BUCKET_VERSIONING = """<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
|
<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
|
||||||
<Status>{{ bucket_versioning_status }}</Status>
|
<Status>{{ bucket_versioning_status }}</Status>
|
||||||
</VersioningConfiguration>
|
</VersioningConfiguration>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
S3_BUCKET_GET_VERSIONING = """
|
S3_BUCKET_GET_VERSIONING = """<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
{% if status is none %}
|
{% if status is none %}
|
||||||
<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
|
<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Loading…
Reference in New Issue
Block a user