Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Conversation

acdha
Copy link

@acdha acdha commented Jan 29, 2019

I was testing this locally and made several changes to make the process a bit nicer. Beyond some PEP-8 cleanup, here are the major changes:

  • Use the AWS_DEFAULT_REGION environmental variable as the region if defined
  • Use a mutually-exclusive option group so CLI users must explicitly select either a dry-run or deleting images
  • The output is now more consistently formatted and has a nicer display of the image IDs which would be deleted

acdha added 5 commits January 29, 2019 11:25
This avoids needing to do type-conversions which
look like errors
* Use easier to read variable names following PEP-8
* Default to a dry-run unless deletion is confirmed
* Use a mutually-exclusive argument group to require command-line runs to specify either --dry-run or --delete-images.
* Have --region default to $AWS_DEFAULT_REGION if set
* Easier to understand variable names
* Print output has consistent use of colons
* Fix typo
* Use enumerate rather than reinventing it
* Nicer display of the digests which would be deleted
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant