def find_errata(module, id, organization, failsafe=False): errata = Errata().search(set(), {'search': 'id="{}"'.format(id)}) return handle_find_response(module, errata, message="No errata found for %s" % id, failsafe=failsafe)
def get_applicable_errata(repo): """Retrieves applicable errata for the given repo""" return Errata(repository=repo).search( query={'errata_restrict_applicable': True})