Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
l01cd3v committed Oct 23, 2017
2 parents 1972468 + 4efc71b commit ce276cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions AWSScout2/rules/postprocessing.py
Expand Up @@ -34,13 +34,13 @@ def update_last_run(aws_config, current_time, ruleset):
# Not supported yet
continue
elif 'findings' in aws_config['services'][service]:
for finding in aws_config['services'][service]['findings']:
for finding in aws_config['services'][service]['findings'].values():
last_run['summary'][service]['rules_count'] += 1
last_run['summary'][service]['checked_items'] += aws_config['services'][service]['findings'][finding]['checked_items']
last_run['summary'][service]['flagged_items'] += aws_config['services'][service]['findings'][finding]['flagged_items']
if 'items' in aws_config['services'][service]['findings'][finding]:
if last_run['summary'][service]['max_level'] != 'danger' and len(aws_config['services'][service]['findings'][finding]['items']) > 0:
last_run['summary'][service]['max_level'] = aws_config['services'][service]['findings'][finding]['level']
last_run['summary'][service]['checked_items'] += finding['checked_items']
last_run['summary'][service]['flagged_items'] += finding['flagged_items']
items = finding.get('items', [])
if last_run['summary'][service]['max_level'] != 'danger' and len(items) > 0:
last_run['summary'][service]['max_level'] = finding['level']
# Total number of resources
for key in aws_config['services'][service]:
if key != 'regions_count' and key.endswith('_count'):
Expand Down

0 comments on commit ce276cf

Please sign in to comment.