Skip to content

Commit 9526a96

Browse files
author
Ryan Rossiter
committed
Fix more item_keyname renames
I updated names from price_keynames -> item_keynames, but I missed a couple. Updated those to be consistent with item_keynames now.
1 parent 67a54fd commit 9526a96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SoftLayer/managers/ordering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def verify_order(self, package_keyname, location, item_keynames,
425425
preset_id = self.get_preset_by_key(package_keyname, preset_keyname)['id']
426426
order['presetId'] = preset_id
427427

428-
price_ids = self.get_price_id_list(package_keyname, price_keynames)
428+
price_ids = self.get_price_id_list(package_keyname, item_keynames)
429429
order['prices'] = [{'id': price_id} for price_id in price_ids]
430430

431431
return self.order_svc.verifyOrder(order)
@@ -455,7 +455,7 @@ def place_order(self, package_keyname, location, item_keynames,
455455
"""
456456
# verify the order, and if the order is valid, the proper prices will be filled
457457
# into the order template, so we can just send that to placeOrder to order it
458-
verified_order = self.verify_order(package_keyname, location, price_keynames,
458+
verified_order = self.verify_order(package_keyname, location, item_keynames,
459459
hourly=hourly,
460460
preset_keyname=preset_keyname,
461461
extras=extras, quantity=quantity)

0 commit comments

Comments
 (0)