Merge "Replace ip with portal to express more accurately"
This commit is contained in:
commit
f359ecc3f7
@ -796,9 +796,9 @@ class ISCSIConnector(BaseLinuxConnector):
|
|||||||
return self.transport
|
return self.transport
|
||||||
|
|
||||||
def _iterate_all_targets(self, connection_properties):
|
def _iterate_all_targets(self, connection_properties):
|
||||||
for ip, iqn, lun in self._get_all_targets(connection_properties):
|
for portal, iqn, lun in self._get_all_targets(connection_properties):
|
||||||
props = copy.deepcopy(connection_properties)
|
props = copy.deepcopy(connection_properties)
|
||||||
props['target_portal'] = ip
|
props['target_portal'] = portal
|
||||||
props['target_iqn'] = iqn
|
props['target_iqn'] = iqn
|
||||||
props['target_lun'] = lun
|
props['target_lun'] = lun
|
||||||
for key in ('target_portals', 'target_iqns', 'target_luns'):
|
for key in ('target_portals', 'target_iqns', 'target_luns'):
|
||||||
|
Loading…
Reference in New Issue
Block a user