'Return list of iSCSI-enabled port descriptions.'

def _get_target_iscsi_ports(self):

    current_array = self._get_current_array()
    ports = current_array.list_ports()
    iscsi_ports = [port for port in ports if port['iqn']]
    if (not iscsi_ports):
        raise exception.PureDriverException(reason=_('No    iSCSI-enabled    ports    on    target    array.'))
    return iscsi_ports
