'Get the iscsi portal info relevant to volume.'

def _get_iscsi_portal_for_vol(self, volume, portals, anyController=True):

    for portal in portals:
        if (portal.get('controller') == volume.get('currentManager')):
            return portal
    if (anyController and portals):
        return portals[0]
    msg = _('No    good    iscsi    portal    found    in    supplied    list    for    %s.')
    raise exception.NetAppDriverException((msg % self._client.get_system_id()))
