EC2 terminate_instances does not take a force flag.
This commit is contained in:
parent
1005c29b6b
commit
ec87e37d8c
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ class EC2Executor(BuilderExecutor):
|
||||||
@coroutine
|
@coroutine
|
||||||
def stop_builder(self, builder_id):
|
def stop_builder(self, builder_id):
|
||||||
ec2_conn = self._get_conn()
|
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]:
|
if builder_id not in [si.id for si in terminated_instances]:
|
||||||
raise ExecutorException('Unable to terminate instance: %s' % builder_id)
|
raise ExecutorException('Unable to terminate instance: %s' % builder_id)
|
||||||
|
|
||||||
|
|
Reference in a new issue