rescan fails for hba missing target wwn
rescan should skip processing the hbas missing target_wwn. Change-Id: I43d8984c8a464a59b4c41a50848bbb3d05f2835e Closes-Bug: #1718690
This commit is contained in:
parent
259a32e457
commit
f3ed507789
@ -294,6 +294,9 @@ class LinuxFibreChannelPPC64(LinuxFibreChannel):
|
|||||||
def rescan_hosts(self, hbas, target_lun):
|
def rescan_hosts(self, hbas, target_lun):
|
||||||
for hba in hbas:
|
for hba in hbas:
|
||||||
# Try to get HBA channel and SCSI target to use as filters
|
# Try to get HBA channel and SCSI target to use as filters
|
||||||
|
# Ignore HBA which does not have target wwn
|
||||||
|
if 'target_wwn' not in hba.keys():
|
||||||
|
continue
|
||||||
for wwpn in hba['target_wwn']:
|
for wwpn in hba['target_wwn']:
|
||||||
cts = self._get_hba_channel_scsi_target(hba, wwpn)
|
cts = self._get_hba_channel_scsi_target(hba, wwpn)
|
||||||
# If we couldn't get the channel and target use wildcards
|
# If we couldn't get the channel and target use wildcards
|
||||||
|
Loading…
Reference in New Issue
Block a user