Skip to content

Commit 980dbbc

Browse files
authored
Update ordering.py
updated the code indentation.
1 parent 421793a commit 980dbbc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

SoftLayer/managers/ordering.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -386,14 +386,14 @@ def get_price_id_list(self, package_keyname, item_keynames, core=None):
386386
matching_item = []
387387
# Need to find the item in the package that has a matching
388388
# keyName with the current item we are searching for
389-
for i in items:
390-
referenceCode = utils.lookup(i, 'softwareDescription', 'referenceCode')
391-
if i['keyName'] == item_keyname or referenceCode == item_keyname:
392-
matching_item.append(i)
393-
394-
if len(matching_item) == 0:
395-
message = f"Item {item_keyname} does not exist for package {package_keyname}"
396-
raise exceptions.SoftLayerError(message)
389+
for i in items:
390+
referenceCode = utils.lookup(i, 'softwareDescription', 'referenceCode')
391+
if i['keyName'] == item_keyname or referenceCode == item_keyname:
392+
matching_item.append(i)
393+
394+
if len(matching_item) == 0:
395+
message = f"Item {item_keyname} does not exist for package {package_keyname}"
396+
raise exceptions.SoftLayerError(message)
397397
matching_item = matching_item[0]
398398

399399
# we want to get the price ID that has no location attached to it,

0 commit comments

Comments
 (0)