'Return target CHAP settings'

def find_target_chap(self):

    chap = {}
    chap['chap_user'] = ''
    chap['chap_passwd'] = ''
    url = ('/storage/arrays/%s/ionetworks' % self._get_ise_globalid())
    resp = self._send_cmd('GET', url)
    status = resp['status']
    if (status != 200):
        LOG.warning('IOnetworks    GET    failed    (%d)', status)
        return chap
    root = etree.fromstring(resp['content'])
    for element in root.iter():
        if (element.tag != 'chap'):
            continue
        chapin = element.find('chapin')
        if (chapin is None):
            continue
        if (chapin.attrib['value'] != '1'):
            continue
        chap_user = chapin.find('username')
        if (chap_user is not None):
            chap['chap_user'] = chap_user.text
        chap_passwd = chapin.find('password')
        if (chap_passwd is not None):
            chap['chap_passwd'] = chap_passwd.text
        break
    return chap
