Skip to content

Commit

Permalink
Fixes indentation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
krishvoor committed Apr 17, 2024
1 parent 325eebb commit 5790c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudsensei/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ def get_resources(self):
elif tag_key == 'name':
name = tag.get('Value')
if not skip and user:
instance_details = {'InstanceId': resource.get('InstanceId'),
instance_details = {'InstanceId': resource.get('InstanceId'),
'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)
return long_running_instances_by_user
return long_running_instances_by_user

def get_account_alias_name(self):
"""
Expand Down

0 comments on commit 5790c4f

Please sign in to comment.