storage/base: for read_only storages do not overwrite the meta data

This commit is contained in:
Дилян Палаузов 2022-01-14 13:07:28 +02:00
parent 7ce9466c46
commit 1c6beae9b4

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)