Skip to content

Commit

Permalink
fix order terminate/stop
Browse files Browse the repository at this point in the history
fix order terminate/stop
  • Loading branch information
maxxx580 authored Mar 15, 2020
1 parent 78b0ab1 commit 24748fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def terminate():
instance_ids = [instance['InstanceId'] for instance in instances]
manager_ids = [instance['InstanceId']
for instance in manager_instances]
ec2_manager.terminate_instances(instance_ids)
ec2_manager.stop_instances(manager_ids)
ec2_manager.terminate_instances(instance_ids)
sys.exit(0)

@app.route('/clearall', methods=['DELETE'])
Expand Down

0 comments on commit 24748fc

Please sign in to comment.