D6283: automation: only iterate over our AMIs

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Wed May 15 11:46:22 EDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG730edbd836d8: automation: only iterate over our AMIs (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6283?vs=14860&id=15087

REVISION DETAIL
  https://phab.mercurial-scm.org/D6283

AFFECTED FILES
  contrib/automation/hgautomation/aws.py

CHANGE DETAILS

diff --git a/contrib/automation/hgautomation/aws.py b/contrib/automation/hgautomation/aws.py
--- a/contrib/automation/hgautomation/aws.py
+++ b/contrib/automation/hgautomation/aws.py
@@ -490,7 +490,7 @@
 
     terminate_ec2_instances(ec2resource, prefix=prefix)
 
-    for image in ec2resource.images.all():
+    for image in ec2resource.images.filter(Owners=['self']):
         if image.name.startswith(prefix):
             remove_ami(ec2resource, image)
 



To: indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list