Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Commit 3f07eef

Browse files
luke-jarymowyczofaurax
authored andcommitted
Fixing minor linter issues from the previous commit.
1 parent cb4596f commit 3f07eef

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packethardware/component/disk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ def list(cls, _):
1616
disks.append(cls(disk))
1717
return disks
1818

19-
# FS-1286 The API requires data for the disk size field to be in string format and
20-
# lsblk returns an integer value in the output.
19+
# FS-1286 The API requires data for the disk size field to be in string format and
20+
# lsblk returns an integer value in the output.
2121
def __init__(self, lsblk):
2222
Component.__init__(self, lsblk, None)
2323
self.lsblk = lsblk

packethardware/component/memory.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ def __init__(self, lshw, element):
2727
# human-readable number
2828
"size": str(int(int(utils.xml_ev(lshw, element, "size")) / 1073741824))
2929
+ "GB",
30-
"clock": int(utils.xml_ev(lshw, element, "clock")) / 1000000
31-
if utils.xml_ev(lshw, element, "clock")
32-
else "",
30+
"clock": (
31+
int(utils.xml_ev(lshw, element, "clock")) / 1000000
32+
if utils.xml_ev(lshw, element, "clock")
33+
else ""
34+
),
3335
"type": utils.get_dmidecode_prop(
3436
"0x" + utils.xml_ev(lshw, element, "@handle", True).split(":", 1)[1],
3537
"17",

0 commit comments

Comments
 (0)