Skip to content

Commit

Permalink
fixes formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gurubert committed Dec 20, 2023
1 parent fd5416a commit 2ff9ac1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmk/base/plugins/agent_based/diskstat.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,13 @@ def diskstat_extract_name_info(
name = f"VxVM {group}-{disk}"
name_info[major, minor] = name
elif phase == "disk_id":
if line[0].startswith('/dev/disk/by-id/ata-') or line[0].startswith('/dev/disk/by-id/scsi-') or line[0].startswith('/dev/disk/by-id/nvme-'):
if (
line[0].startswith('/dev/disk/by-id/ata-')
or line[0].startswith('/dev/disk/by-id/scsi-')
or line[0].startswith('/dev/disk/by-id/nvme-')
):
disk = line[1][6:]
name = '/'.join(line[0].split('/')[4:])
name = "/".join(line[0].split("/")[4:])
name_info[disk] = name
return timestamp, info_plain, name_info

Expand Down

0 comments on commit 2ff9ac1

Please sign in to comment.