diff --git a/pylxd/models/storage_pool.py b/pylxd/models/storage_pool.py index 527b0a3e..e0d276c8 100644 --- a/pylxd/models/storage_pool.py +++ b/pylxd/models/storage_pool.py @@ -698,6 +698,9 @@ def get(cls, volume, name): if response.json()["metadata"]["expires_at"] == "0001-01-01T00:00:00Z": snapshot.expires_at = None + # This field is normally empty so derive it from its volume. + snapshot.content_type = volume.content_type + # Snapshot names are namespaced in LXD, as volume-name/snapshot-name. # We hide that implementation detail. snapshot.name = snapshot.name.split("/")[-1]