'Queries the placement API for a resource provider record with the
supplied UUID.
Returns a dict of resource provider information if found or None if no
such resource provider could be found.
:param uuid: UUID identifier for the resource provider to look up'

@safe_connect
def _get_resource_provider(self, uuid):

    resp = self.get(('/resource_providers/%s' % uuid))
    if (resp.status_code == 200):
        data = resp.json()
        return data
    elif (resp.status_code == 404):
        return None
    else:
        placement_req_id = get_placement_request_id(resp)
        msg = _LE('[%(placement_req_id)s]    Failed    to    retrieve    resource    provider    record    from    placement    API    for    UUID    %(uuid)s.    Got    %(status_code)d:    %(err_text)s.')
        args = {'uuid': uuid, 'status_code': resp.status_code, 'err_text': resp.text, 'placement_req_id': placement_req_id}
        LOG.error(msg, args)
