Fix `LsblkInfo` size field (#1787)

This commit is contained in:
Daemon Coder 2023-05-05 01:47:35 -04:00 committed by GitHub
parent 15199081e5
commit 1330c68084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -851,7 +851,7 @@ class LsblkInfo:
name: str = ''
path: Path = Path()
pkname: str = ''
size: Size = Size(0, Unit.B)
size: Size = field(default_factory=lambda: Size(0, Unit.B))
log_sec: int = 0
pttype: str = ''
ptuuid: str = ''