diff --git a/cloudsensei/lambda_function.py b/cloudsensei/lambda_function.py index f6a5ad5b..61d01bf7 100644 --- a/cloudsensei/lambda_function.py +++ b/cloudsensei/lambda_function.py @@ -80,9 +80,9 @@ def get_resources(self): 'Name': name, 'LaunchDate': str(launch_time), 'RunningDays': f"{days} days", 'State': resource.get('State', {}).get('Name'), 'InstanceType': resource.get('InstanceType')} - if ticket_tags: # Add TicketId tags if available - instance_details['TicketId'] = ticket_tags - long_running_instances_by_user.setdefault(user.lower(), {}).setdefault(region_name, []).append(instance_details) + if ticket_tags: # Add TicketId tags if available + instance_details['TicketId'] = ticket_tags + long_running_instances_by_user.setdefault(user.lower(), {}).setdefault(region_name, []).append(instance_details) return long_running_instances_by_user def get_account_alias_name(self):