EC2 terminate_instances does not take a force flag.

This commit is contained in:
Jake Moshenko 2014-12-23 17:17:53 -05:00
parent 1005c29b6b
commit ec87e37d8c

View file

@ -147,7 +147,7 @@ class EC2Executor(BuilderExecutor):
@coroutine
def stop_builder(self, builder_id):
ec2_conn = self._get_conn()
terminated_instances = yield From(ec2_conn.terminate_instances([builder_id], force=True))
terminated_instances = yield From(ec2_conn.terminate_instances([builder_id]))
if builder_id not in [si.id for si in terminated_instances]:
raise ExecutorException('Unable to terminate instance: %s' % builder_id)