contrib/automation/hgautomation/cli.py
changeset 42304 dd6a9723ae2b
parent 42024 b05a3e28cf24
child 42310 d137a3d5ad41
--- a/contrib/automation/hgautomation/cli.py	Fri Apr 19 05:15:43 2019 -0700
+++ b/contrib/automation/hgautomation/cli.py	Fri Apr 19 05:20:33 2019 -0700
@@ -95,12 +95,12 @@
 
 
 def terminate_ec2_instances(hga: HGAutomation, aws_region):
-    c = hga.aws_connection(aws_region)
+    c = hga.aws_connection(aws_region, ensure_ec2_state=False)
     aws.terminate_ec2_instances(c.ec2resource)
 
 
 def purge_ec2_resources(hga: HGAutomation, aws_region):
-    c = hga.aws_connection(aws_region)
+    c = hga.aws_connection(aws_region, ensure_ec2_state=False)
     aws.remove_resources(c)