Merge pull request #960 from dilyanpalauzov/readonly_metadata

storage/base: for read_only storages do not overwrite the meta data
This commit is contained in:
Hugo Osvaldo Barrera 2022-01-14 12:47:18 +01:00 committed by GitHub
commit 10659b80ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ class StorageMeta(ABCMeta):
def __init__(cls, name, bases, d):
"""Wrap mutating methods to fail if the storage is readonly."""
for method in ("update", "upload", "delete"):
for method in ("update", "upload", "delete", "set_meta"):
setattr(cls, method, mutating_storage_method(getattr(cls, method)))
return super().__init__(name, bases, d)