Skip to content

Commit fba1bf6

Browse files
committed
fix: mark snapshot as partial on creation
1 parent f772485 commit fba1bf6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hcloud/storage_boxes/client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,12 @@ def create_snapshot(
728728
json=data,
729729
)
730730
return CreateStorageBoxSnapshotResponse(
731-
snapshot=BoundStorageBoxSnapshot(self, response["snapshot"]),
731+
snapshot=BoundStorageBoxSnapshot(
732+
self,
733+
response["snapshot"],
734+
# API only returns a partial object.
735+
complete=False,
736+
),
732737
action=BoundAction(self._parent.actions, response["action"]),
733738
)
734739

0 commit comments

Comments
 (0)