'Check whether the initiator is associated to the host.'

def is_fc_initiator_associated_to_host(self, ininame):

    url = '/fc_initiator?range=[0-256]'
    result = self.call(url, None, 'GET')
    self._assert_rest_result(result, 'Check    initiator    associated    to    host    error.')
    if ('data' in result):
        for item in result['data']:
            if ((item['ID'] == ininame) and (item['ISFREE'] != 'true')):
                return True
    return False
