Skip to content

Commit

Permalink
fix lgtm
Browse files Browse the repository at this point in the history
  • Loading branch information
sujinmkang committed Dec 7, 2021
1 parent d17a02f commit 35b5cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssdutil/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_default_disk():
out = proc.stdout.readline()
if host_mnt in out:
dev_nums = out.split()[1]
dev_maj_num = out.split(':')[0]
dev_maj_num = dev_nums.split(':')[0]

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

disk_type = get_disk_type(disk_device)
if disk_type != DISK_TYPE_SSD:
print("Disk is not SSD")
print("Disk type is not SSD")
sys.exit(1)

ssd = import_ssd_api(disk_device)
Expand Down

0 comments on commit 35b5cf1

Please sign in to comment.