(self)
| 47 | importer_name = "Xen Importer" |
| 48 | |
| 49 | def advisory_data(self): |
| 50 | data = fetch_response(self.url).json() |
| 51 | # The data looks like this |
| 52 | # [ |
| 53 | # { |
| 54 | # "xsas": [ |
| 55 | # { |
| 56 | # "cve": [ |
| 57 | # "CVE-2012-5510" |
| 58 | # ], |
| 59 | # "title": "XSA-1: Xen security advisory", |
| 60 | # } |
| 61 | # ] |
| 62 | # } |
| 63 | # ] |
| 64 | if not data: |
| 65 | return [] |
| 66 | xsas = data[0]["xsas"] |
| 67 | for xsa in xsas: |
| 68 | yield from self.to_advisories(xsa) |
| 69 | |
| 70 | def to_advisories(self, xsa): |
| 71 | xsa_id = xsa.get("xsa") |
nothing calls this directly
no test coverage detected