* add instance id to domain issues too

This commit is contained in:
maor.rayzin 2018-11-26 14:01:46 +02:00
parent 1912a27422
commit a00bfc17e3
1 changed files with 3 additions and 0 deletions

View File

@ -542,8 +542,11 @@ class ReportService:
for issue in issues: for issue in issues:
if not issue.get('is_local', True): if not issue.get('is_local', True):
machine = issue.get('machine').upper() machine = issue.get('machine').upper()
aws_instance_id = ReportService.get_machine_aws_instance_id(issue.get('machine'))
if machine not in domain_issues_dict: if machine not in domain_issues_dict:
domain_issues_dict[machine] = [] domain_issues_dict[machine] = []
if aws_instance_id:
issue['aws_instance_id'] = aws_instance_id
domain_issues_dict[machine].append(issue) domain_issues_dict[machine].append(issue)
logger.info('Domain issues generated for reporting') logger.info('Domain issues generated for reporting')
return domain_issues_dict return domain_issues_dict