Skip to content

Commit 5cc02e7

Browse files
author
Nathan Beittenmiller
committed
Change the hourly billing argument when ordering BMC. Closes softlayer#256
1 parent 7b3ffd0 commit 5cc02e7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

SoftLayer/managers/hardware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def _generate_create_dict(
480480
order['prices'].append({'id': int(server)})
481481
p_options = self.get_bare_metal_create_options()
482482
if hourly:
483-
order['hourlyBillingFlag'] = True
483+
order['useHourlyPricing'] = True
484484
else:
485485
order['packageId'] = package_id
486486
order['prices'].append({'id': int(server)})

SoftLayer/tests/managers/hardware_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def test_generate_create_dict_with_all_bare_metal_options(self):
161161
{'id': 600},
162162
{'id': 12000}
163163
],
164-
'hourlyBillingFlag': True,
164+
'useHourlyPricing': True,
165165
'location': 'Wyrmshire', 'packageId': 50
166166
}
167167

0 commit comments

Comments
 (0)