'Check whether the initiator is already added on the array.'

def _initiator_is_added_to_array(self, ininame):

    url = '/iscsi_initiator?range=[0-256]'
    result = self.call(url, None, 'GET')
    self._assert_rest_result(result, _('Check    initiator    added    to    array    error.'))
    if self._get_id_from_result(result, ininame, 'ID'):
        return True
    return False
