Fix bad cable note

This commit is contained in:
2Shirt 2018-12-16 19:30:46 -07:00
parent ef42b596d9
commit 8993b483a6
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -233,15 +233,15 @@ class DiskObj():
_color = COLORS[_c]
# 199/C7 warning
if str(k) == '199':
if str(k) == '199' and v['raw'] > 0:
_note = '(bad cable?)'
# Attribute value
_line += '{}{} {}{}'.format(
_color,
v['raw_str'],
_note,
COLORS['CLEAR'])
_line += '{c}{v} {YELLOW}{n}{CLEAR}'.format(
c=_color,
v=v['raw_str'],
n=_note,
**COLORS)
# Add line to report
report.append(_line)