Skip to content

Commit 35b5cf1

Browse files
committed
fix lgtm
1 parent d17a02f commit 35b5cf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ssdutil/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def get_default_disk():
3232
out = proc.stdout.readline()
3333
if host_mnt in out:
3434
dev_nums = out.split()[1]
35-
dev_maj_num = out.split(':')[0]
35+
dev_maj_num = dev_nums.split(':')[0]
3636

3737
cmd = "lsblk -l -I {} |grep disk".format(dev_maj_num)
3838
proc = subprocess.Popen(cmd, shell=True, text=True, stdout=subprocess.PIPE)
@@ -109,7 +109,7 @@ def ssdutil():
109109

110110
disk_type = get_disk_type(disk_device)
111111
if disk_type != DISK_TYPE_SSD:
112-
print("Disk is not SSD")
112+
print("Disk type is not SSD")
113113
sys.exit(1)
114114

115115
ssd = import_ssd_api(disk_device)

0 commit comments

Comments
 (0)