Skip to content

Commit

Permalink
Merge pull request #3 from 5xops/master
Browse files Browse the repository at this point in the history
update hwcheck script to fix #2
  • Loading branch information
longwj committed Nov 3, 2016
2 parents ce00af9 + 77023d3 commit bfa6dad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hwcheck
Expand Up @@ -175,7 +175,7 @@ def check_pdisk(ctrlers=[0]):
for cid in ctrlers:
cmd = 'omreport storage pdisk controller=%s -fmt ssv' % cid
stdout, stderr = execute(cmd)
pdisks = [p for p in stdout.splitlines() if 'HDD' in p or 'SSD' in p]
pdisks = [p for p in stdout.splitlines() if 'bytes' in p]
for line in pdisks:
i = line.split(';')
ID = i[0].strip()
Expand Down Expand Up @@ -239,7 +239,7 @@ def check_vdisk(ctrlers=[0]):
for cid in ctrlers:
cmd = 'omreport storage vdisk controller=%s -fmt ssv' % cid
stdout, stderr = execute(cmd)
vdisks = [v for v in stdout.splitlines() if 'HDD' in v or 'SSD' in v]
vdisks = [v for v in stdout.splitlines() if 'bytes' in v]
for line in vdisks:
i = line.split(';')
ID = i[0].strip()
Expand Down

0 comments on commit bfa6dad

Please sign in to comment.