awslabs / ecr-cleanup-lambda

A script to discover stale ECR images and take action on them with Lambda to help reduce costs.
Other
161 stars 96 forks source link

Fix -dryrun parameter (it was being ignored before) #9

Closed nfvs closed 7 years ago

nfvs commented 7 years ago

Previously any parameter passed in -dryrun was ignored since the result is stored as a string, and the comparison if not DRYRUN would always be false, independently of its contents.

Now any value whose lowercase string is not false is mapped to DRYRUN=True.