Patchwork D6283: automation: only iterate over our AMIs

login
register
mail settings
Submitter phabricator
Date May 15, 2019, 3:46 p.m.
Message ID <b000d5949ad33e2455cdcf5eb0395949@localhost.localdomain>
Download mbox | patch
Permalink /patch/40034/
State Not Applicable
Headers show

Comments

phabricator - May 15, 2019, 3:46 p.m.
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




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

Patch

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)