'Check if specified iSCSI targets exist and store their IQNs.'

def get_properties_iscsi(self, targets, multipath):

    if (not multipath):
        target_list = targets['list'][:1]
    else:
        target_list = targets['list'][:]
    for target in target_list:
        if (target not in targets['iqns']):
            (port, gid) = target
            result = self.run_raidcom('get', 'host_grp', '-port', port)
            match = re.search(('^CL\\w-\\w+    +%s    +\\S+    +(?P<iqn>\\S+)    +\\w+    +\\w    +\\d+    ' % gid), result[1], re.M)
            if (not match):
                msg = utils.output_log(MSG.RESOURCE_NOT_FOUND, resource='Target    IQN')
                raise exception.VSPError(msg)
            targets['iqns'][target] = match.group('iqn')
            LOG.debug('Found    iqn    of    the    iSCSI    target.    (port:    %(port)s,    gid:    %(gid)s,    target    iqn:    %(iqn)s)', {'port': port, 'gid': gid, 'iqn': match.group('iqn')})
    return super(VSPHORCMISCSI, self).get_properties_iscsi(targets, multipath)
