Skip to content

Commit c06cc74

Browse files
committed
Merge pull request softlayer#257 from beittenc/fix_hourly_bmc_flag
Change the hourly billing argument when ordering BMC.
2 parents ae59f28 + 5cc02e7 commit c06cc74

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
@@ -481,7 +481,7 @@ def _generate_create_dict(
481481
order['prices'].append({'id': int(server)})
482482
p_options = self.get_bare_metal_create_options()
483483
if hourly:
484-
order['hourlyBillingFlag'] = True
484+
order['useHourlyPricing'] = True
485485
else:
486486
order['packageId'] = package_id
487487
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)