This fixes ~two~ one minor problems that can cause image-inspector to crush
If the scan fails then the results will still be sent to be parsed and this will cause a panic that will crush the software. Moved the parsing to only happen when the scan was successful.
~When given the argument is appended with the name of the expected CVE file which is not the intent of this argument.~ I remembered that for this parameter that it is expected to be a path to be appended with "com.redhat.rhsa-RHEL7.ds.xml.bz2". (7 could be replaced with the RHEL version of the scanned image). I now feel that this will be a bit less convenient when providing entirely different cve files with custom checks. I just wanted to fix small bugs here so I removed this.
This fixes ~two~ one minor problems that can cause image-inspector to crush
If the scan fails then the results will still be sent to be parsed and this will cause a panic that will crush the software. Moved the parsing to only happen when the scan was successful.
~When given the argument is appended with the name of the expected CVE file which is not the intent of this argument.~ I remembered that for this parameter that it is expected to be a path to be appended with "com.redhat.rhsa-RHEL7.ds.xml.bz2". (7 could be replaced with the RHEL version of the scanned image). I now feel that this will be a bit less convenient when providing entirely different cve files with custom checks. I just wanted to fix small bugs here so I removed this.