Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
Build 46 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
excelero-andreas committed Oct 30, 2018
1 parent f062bb3 commit 07727fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nvmesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -3008,7 +3008,8 @@ def show_drives(details, targets, tsv):
else:
target_details = json.loads(nvmesh.get_server_by_id(target))
for disk in target_details['disks']:
vendor = disk['Vendor'] if not disk['Vendor'] in NVME_VENDORS else NVME_VENDORS[disk['Vendor']]
vendor = disk['Vendor'] if not str(disk['Vendor']).lower() in NVME_VENDORS else \
NVME_VENDORS[str(disk['Vendor']).lower()]
status = u'\u2705' if disk["status"].lower() == "ok" else u'\u274C'
if 'isOutOfService' in disk:
in_service = formatter.red("No")
Expand Down

0 comments on commit 07727fa

Please sign in to comment.