-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Handle empty lists in TAXII status responses
These elements of the response are optional, so we should accept situations when they aren't provided at all. This change simply checks if the iterable `successes`, `pendings` and `failures` are truthy prior to verifying that their lengths match the associated `*_count` attribute. As such, we now accept status responses which return empty lists for these elements as well as responses which omit them entirely. Change-Id: I0ff802b9722c536144403a33e399c73fd29bdc61
- Loading branch information
1 parent
355b9a3
commit 0bdf84e
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters