Skip to content

Commit

Permalink
Refactored suspend cloud server order
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Ojeda committed Oct 10, 2018
1 parent 8056e81 commit d7473db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SoftLayer/managers/ordering.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def get_item_price_id(core, price, price_id):
category_code = []
capacity_min = int(price.get('capacityRestrictionMinimum', -1))
capacity_max = int(price.get('capacityRestrictionMaximum', -1))
if capacity_min is -1:
if capacity_min == -1:
if price['categories'][0]['categoryCode'] not in category_code:
category_code.append(price['categories'][0]['categoryCode'])
price_id = price['id']
Expand Down

0 comments on commit d7473db

Please sign in to comment.