Merge pull request #2304 from coreos-inc/small-bug-fix
Security scanner ordered tuplize bug fix
This commit is contained in:
commit
0e04d1ce80
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@ class SecurityNotificationHandler(object):
|
|||
# Check for ordered data. If found, we use the indexed tracker, which is faster and
|
||||
# more memory efficient.
|
||||
is_indexed = False
|
||||
if 'OrderedLayersIntroducingVulnerability' in new_data:
|
||||
if ('OrderedLayersIntroducingVulnerability' in new_data or
|
||||
'OrderedLayersIntroducingVulnerability' in old_data):
|
||||
|
||||
def tuplize(stream):
|
||||
return [(entry['LayerName'], entry['Index']) for entry in stream]
|
||||
|
||||
|
|
Reference in a new issue