Skip to content

Commit

Permalink
fix pep8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kissiel committed Jan 11, 2024
1 parent cb4ea6b commit 663a8ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions providers/base/bin/disk_smart.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def count_raid_disks(disk):
encoding="utf-8", errors="ignore"
).splitlines()

# NOTE: If raid_types changes, also change it in block_device_resource script!
# NOTE: If raid_types changes,
# also change it in block_device_resource script!
KNOWN_RAID_TYPES = ["megaraid", "cciss", "3ware", "areca"]

Check warning on line 180 in providers/base/bin/disk_smart.py

View check run for this annotation

Codecov / codecov/patch

providers/base/bin/disk_smart.py#L180

Added line #L180 was not covered by tests

for type in KNOWN_RAID_TYPES:
Expand Down Expand Up @@ -284,7 +285,7 @@ def get_smart_entries(disk, raid_element, raid_type, verbose=False):
if line.startswith("#"):
entry = {}
for i, column in enumerate(columns):
entry[column] = line[lengths[i] : lengths[i + 1]].strip()
entry[column] = line[lengths[i]:lengths[i + 1]].strip()

# Convert some columns to integers
entry["number"] = int(entry["number"][1:])

Check warning on line 291 in providers/base/bin/disk_smart.py

View check run for this annotation

Codecov / codecov/patch

providers/base/bin/disk_smart.py#L291

Added line #L291 was not covered by tests
Expand Down

0 comments on commit 663a8ac

Please sign in to comment.