From c75e547e50d2269a4d719a51bbdfdb876f0cfc1f Mon Sep 17 00:00:00 2001 From: Krishna Harsha Voora Date: Wed, 17 Apr 2024 12:34:05 +0530 Subject: [PATCH] Minor changes --- cloudsensei/lambda_function.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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):