Skip to content

Commit

Permalink
Improve size selection
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Nov 19, 2018
1 parent ec47dd5 commit 575127c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IM/connectors/GCE.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def get_instance_type(self, sizes, radl):
# get the node size with the lowest price and memory (in the case
# of the price is not set)
if size.price is None:
size.price = 0
size.price = 9999
if res is None or (size.price <= res.price or size.ram <= res.ram):
str_compare = ""
if 'guestCpus' in size.extra and size.extra['guestCpus']:
Expand Down

0 comments on commit 575127c

Please sign in to comment.