storage/v2: disk preserve also

This commit is contained in:
Dan Bungert 2021-09-29 07:48:10 -06:00
parent b820861c59
commit 576c2e3025
2 changed files with 2 additions and 0 deletions

View File

@ -265,6 +265,7 @@ def _for_client_disk(disk, *, min_size=0):
path=path,
type=desc(disk),
size=disk.size,
preserve=disk.preserve,
usage_labels=usage_labels(disk),
partitions=[for_client(p) for p in disk._partitions],
free_for_partitions=disk.free_for_partitions,

View File

@ -262,6 +262,7 @@ class Disk:
type: Optional[str]
size: int
ok_for_guided: Optional[bool]
preserve: Optional[bool] = None
path: Optional[str] = None
free_for_partitions: Optional[int] = 0
usage_labels: Optional[List[str]] = []