Closed ryran closed 7 years ago
Done.
$ rhsecapi --q-iava 2016-B-0164 -l debug
[INFO ] rhsda: Getting 'https://access.redhat.com/labs/iavmmapper/api/iava/' ...
[DEBUG ] rhsda: Return status: '200'; Content-Type: 'application/json; charset=utf-8'
[DEBUG ] rhsda: IAVM Mapper app main index contains '2016-B-0164'
[INFO ] rhsda: Getting 'https://access.redhat.com/labs/iavmmapper/api/iava/2016-B-0164' ...
[INFO ] rhsda: 500 Server Error: Internal Server Error for url: https://access.redhat.com/labs/iavmmapper/api/iava/2016-B-0164
[ERROR ] rhsda: IAVM Mapper app doesn't have entry for '2016-B-0164'
For help, open an issue at http://github.com/ryran/rhsecapi
Or post a comment at https://access.redhat.com/discussions/2713931
A good one works:
A fake one isn't in the index so gets expected output:
What about if an IAVA that is known by the global index but doesn't actually exist for some reason?
Yeah so my error-handling didn't account for that. Will do.