We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d17a02f commit 35b5cf1Copy full SHA for 35b5cf1
ssdutil/main.py
@@ -32,7 +32,7 @@ def get_default_disk():
32
out = proc.stdout.readline()
33
if host_mnt in out:
34
dev_nums = out.split()[1]
35
- dev_maj_num = out.split(':')[0]
+ dev_maj_num = dev_nums.split(':')[0]
36
37
cmd = "lsblk -l -I {} |grep disk".format(dev_maj_num)
38
proc = subprocess.Popen(cmd, shell=True, text=True, stdout=subprocess.PIPE)
@@ -109,7 +109,7 @@ def ssdutil():
109
110
disk_type = get_disk_type(disk_device)
111
if disk_type != DISK_TYPE_SSD:
112
- print("Disk is not SSD")
+ print("Disk type is not SSD")
113
sys.exit(1)
114
115
ssd = import_ssd_api(disk_device)
0 commit comments