예제 #1
0
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)
예제 #2
0
 def get_applicable_errata(repo):
     """Retrieves applicable errata for the given repo"""
     return Errata(repository=repo).search(
         query={'errata_restrict_applicable': True})