Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
always get spot price from bid-advisor (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgunapati committed Jun 5, 2020
1 parent 67a2c36 commit 37758ee
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cloud_provider/aws/aws_minion_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,7 @@ def update_needed(self, asg_meta):
try:
asg_tag = asg_meta.get_mm_tag()
bid_info = asg_meta.get_bid_info()
if not bid_info.get("price"):
current_price = self.get_new_bid_info(asg_meta).get("price") or ""
else:
current_price = bid_info.get("price")
current_price = self.get_new_bid_info(asg_meta).get("price") or ""

if asg_tag == "no-spot":
if bid_info["type"] == "spot":
Expand Down

0 comments on commit 37758ee

Please sign in to comment.