mlevit / aws-auto-cleanup

Programmatically delete AWS resources based on an allowlist and time to live (TTL) settings
MIT License
495 stars 54 forks source link

Fix for issue-31. Fail to detect volumes with empty attachments #32

Closed tianomagdaong closed 5 years ago

tianomagdaong commented 5 years ago

Change condition to properly evaluate empty list.

https://github.com/tianomagdaong/aws-auto-cleanup/blob/hotfix/issue-31/auto-cleanup/ec2_cleanup.py#L305

Also I just want to say thank you, this tool saved me a lot of time.