Skip to content

Commit d7473db

Browse files
author
Fernando Ojeda
committed
Refactored suspend cloud server order
1 parent 8056e81 commit d7473db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoftLayer/managers/ordering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def get_item_price_id(core, price, price_id):
379379
category_code = []
380380
capacity_min = int(price.get('capacityRestrictionMinimum', -1))
381381
capacity_max = int(price.get('capacityRestrictionMaximum', -1))
382-
if capacity_min is -1:
382+
if capacity_min == -1:
383383
if price['categories'][0]['categoryCode'] not in category_code:
384384
category_code.append(price['categories'][0]['categoryCode'])
385385
price_id = price['id']

0 commit comments

Comments
 (0)