Merge pull request #998 from coreos-inc/fix_secnotification

Fix security notification perform condition
This commit is contained in:
Quentin Machu 2015-11-30 13:55:36 -05:00
commit eeb4f952dc

View file

@ -125,7 +125,7 @@ class VulnerabilityFoundEvent(NotificationEvent):
expected_level_index = event_config['level']
priority = PRIORITY_LEVELS[event_data['vulnerability']['priority']]
actual_level_index = priority['index']
return expected_level_index <= actual_level_index
return actual_level_index <= expected_level_index
def get_summary(self, event_data, notification_data):
msg = '%s vulnerability detected in repository %s in tags %s'