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

Fail to evaluate volumes with empty attachments #31

Closed tianomagdaong closed 5 years ago

tianomagdaong commented 5 years ago

https://github.com/servian/aws-auto-cleanup/blob/c6ea79d576f46bf1b66d344c1baa00bfcc9c5987/auto-cleanup/ec2_cleanup.py#L305

Current condition fails to detect empty lists return by "resource.get('Attachments')" .