Skip to content

Commit e081d7d

Browse files
changed locatoinGroupId to check for None instead of empty string
1 parent 87637ad commit e081d7d

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
@@ -343,7 +343,7 @@ def get_price_id_list(self, package_keyname, item_keynames):
343343
# can take that ID and create the proper price for us in the location
344344
# in which the order is made
345345
price_id = [p['id'] for p in matching_item['prices']
346-
if p['locationGroupId'] == ''][0]
346+
if p['locationGroupId'] is None][0]
347347
prices.append(price_id)
348348

349349
return prices

0 commit comments

Comments
 (0)