Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
krishvoor committed Apr 17, 2024
1 parent 5790c4f commit c75e547
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloudsensei/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c75e547

Please sign in to comment.