From c52a6fa69d6004fec390ae6e2189764b020ef4ec Mon Sep 17 00:00:00 2001 From: Shri Javadekar Date: Wed, 27 Mar 2019 11:06:12 -0700 Subject: [PATCH] Don't use spot_price for on-demand instances. (#30) Testing Done: - Unit tests pass. Closes #28. --- cloud_provider/aws/aws_minion_manager.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/cloud_provider/aws/aws_minion_manager.py b/cloud_provider/aws/aws_minion_manager.py index 549e90a..0651725 100644 --- a/cloud_provider/aws/aws_minion_manager.py +++ b/cloud_provider/aws/aws_minion_manager.py @@ -267,7 +267,6 @@ def create_lc_on_demand(self, new_lc_name, launch_config): InstanceType=launch_config.InstanceType, BlockDeviceMappings=launch_config.BlockDeviceMappings, InstanceMonitoring=launch_config.InstanceMonitoring, - SpotPrice=spot_price, IamInstanceProfile=launch_config.IamInstanceProfile, EbsOptimized=launch_config.EbsOptimized, AssociatePublicIpAddress=launch_config. @@ -284,7 +283,6 @@ def create_lc_on_demand(self, new_lc_name, launch_config): InstanceType=launch_config.InstanceType, BlockDeviceMappings=launch_config.BlockDeviceMappings, InstanceMonitoring=launch_config.InstanceMonitoring, - SpotPrice=spot_price, IamInstanceProfile=launch_config.IamInstanceProfile, EbsOptimized=launch_config.EbsOptimized) assert response is not None, \