Skip to content

Commit

Permalink
FossId: Fix error message check for queued scan
Browse files Browse the repository at this point in the history
This is a fixup for d5cfdfb.

Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.io>
  • Loading branch information
MarcelBochtler authored and sschuberth committed Sep 1, 2021
1 parent d6696ac commit 8b156fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanner/src/main/kotlin/scanners/fossid/FossId.kt
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ class FossId internal constructor(
// Scans that were added to the queue are interpreted as an error by FossID before version 2021.2.
// For older versions, `waitScanComplete()` is able to deal with queued scans. Therefore, not checking the
// response of queued scans.
if (version >= "2021.2" || scanResult.error != "Scan was added to queue") {
if (version >= "2021.2" || scanResult.error != "Scan was added to queue.") {
scanResult.checkResponse("trigger scan", false)
}

Expand Down

0 comments on commit 8b156fc

Please sign in to comment.