Skip to content

Commit

Permalink
OT: Normalize lsblk data for stability in output
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Nov 4, 2024
1 parent 1af7fd8 commit 0fb69fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packethardware/component/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def __init__(self, lsblk):
),
"tool": self.lsblk["tool"],
}
self.lsblk["rota"] = self.data["rota"]
self.lsblk["size"] = self.data["size"]

if self.__is_nvme():
self.data["smart"] = utils.get_nvme_attributes(self.lsblk["name"])
Expand Down

0 comments on commit 0fb69fb

Please sign in to comment.