diff --git a/packethardware/component/disk.py b/packethardware/component/disk.py index 630fda6..5e35744 100644 --- a/packethardware/component/disk.py +++ b/packethardware/component/disk.py @@ -30,7 +30,9 @@ def __init__(self, lsblk): "rota": ( self.lsblk["rota"] if isinstance(self.lsblk["rota"], str) - else "1" if self.lsblk["rota"] else "0" + else "1" + if self.lsblk["rota"] + else "0" ), "tool": self.lsblk["tool"], } @@ -38,7 +40,13 @@ def __init__(self, lsblk): self.lsblk["size"] = self.data["size"] if "children" in self.lsblk: for c in self.lsblk["children"]: - c["rota"] = c["rota"] if isinstance(c["rota"], str) else "1" if c["rota"] else "0" + c["rota"] = ( + c["rota"] + if isinstance(c["rota"], str) + else "1" + if c["rota"] + else "0" + ) c["size"] = str(c["size"]) if self.__is_nvme():