storage/v2: disk preserve also
This commit is contained in:
parent
b820861c59
commit
576c2e3025
|
@ -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,
|
||||
|
|
|
@ -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]] = []
|
||||
|
|
Loading…
Reference in New Issue