Skip to content

Commit bb7b220

Browse files
author
caberos
committed
fix tox tool
1 parent 6f24220 commit bb7b220

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

SoftLayer/managers/vs.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,12 @@ def _get_price_id_for_upgrade_option(self, upgrade_prices, option, value, public
10331033
or product.get('units') == 'DEDICATED_CORE')
10341034

10351035
for category in price.get('categories'):
1036-
if not (category_code == (''.join([i for i in category.get('categoryCode') if not i.isdigit()]))
1036+
if option == 'disk':
1037+
if not (category_code == (''.join([i for i in category.get('categoryCode') if not i.isdigit()]))
1038+
and str(product.get('capacity')) == str(value)):
1039+
return price.get('id')
1040+
1041+
if not (category.get('categoryCode') == category_code
10371042
and str(product.get('capacity')) == str(value)):
10381043
continue
10391044

0 commit comments

Comments
 (0)