Skip to content

Commit

Permalink
Fix for issue integralstor#454
Browse files Browse the repository at this point in the history
  • Loading branch information
purushotham-s committed Jun 1, 2019
1 parent af48657 commit 0e0a359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site-packages/integralstor/disks.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def get_disk_status(disk_name):
if hw_platform and hw_platform == 'dell':
if disk_hw_info_all:
for si_no in disk_hw_info_all.keys():
if si_no in disk_dict['serial_number']:
if si_no in disk_dict['serial_number'] or disk_dict['serial_number'] in si_no:
serial_number = si_no
disk_dict['target_id'] = disk_hw_info_all[serial_number]['target_id']
disk_dict['controller_number'] = disk_hw_info_all[serial_number]['controller_number']
Expand Down

0 comments on commit 0e0a359

Please sign in to comment.