We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52357b3 commit d8902f0Copy full SHA for d8902f0
1 file changed
SoftLayer/managers/hardware.py
@@ -355,12 +355,11 @@ def place_order(self, **kwargs):
355
'disks': [],
356
}
357
358
- for category, item_id in selections:
359
- for item in options['categories'][category]['items']:
+ for cat, item_id in selections:
+ for item in options['categories'][cat]['items'].items():
360
if item['id'] == item_id:
361
- if 'disk' not in category and \
362
- 'disk_controller' != category:
363
- args[category] = item['price_id']
+ if 'disk' not in cat or 'disk_controller' == cat:
+ args[cat] = item['price_id']
364
else:
365
args['disks'].append(item['price_id'])
366
0 commit comments