Merge pull request #2304 from coreos-inc/small-bug-fix

Security scanner ordered tuplize bug fix
This commit is contained in:
josephschorr 2017-01-24 14:59:31 -05:00 committed by GitHub
commit 0e04d1ce80

View file

@ -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]