Skip to content

Commit

Permalink
Merge pull request #497 from sergiocarlosmorales/fix-server-recurring…
Browse files Browse the repository at this point in the history
…-cost

Fix server cost reporting
  • Loading branch information
sudorandom committed Mar 5, 2015
2 parents 61710a2 + 3817497 commit 84a5a7f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion SoftLayer/CLI/server/detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def cli(env, identifier, passwords, price):

if price:
table.add_row(['price rate',
result['billingItem']['recurringFee']])
utils.lookup(result,
'billingItem',
'nextInvoiceTotalRecurringAmount')])

if passwords:
pass_table = formatting.Table(['username', 'password'])
Expand Down
2 changes: 1 addition & 1 deletion SoftLayer/managers/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def get_hardware(self, hardware_id, **kwargs):
version,
referenceCode]],
passwords[username,password]]''',
'billingItem.recurringFee',
'billingItem.nextInvoiceTotalRecurringAmount',
'hourlyBillingFlag',
'tagReferences[id,tag[name,id]]',
'networkVlans[id,vlanNumber,networkSpace]',
Expand Down
1 change: 1 addition & 0 deletions SoftLayer/testing/fixtures/SoftLayer_Hardware_Server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
'billingItem': {
'id': 6327,
'recurringFee': 1.54,
'nextInvoiceTotalRecurringAmount': 16.08,
'orderItem': {
'order': {
'userRecord': {
Expand Down
2 changes: 1 addition & 1 deletion SoftLayer/tests/CLI/modules/server_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def test_server_details(self):
'notes': 'These are test notes.',
'os': 'Ubuntu',
'owner': 'chechu',
'price rate': 1.54,
'price rate': 16.08,
'private_ip': '10.1.0.2',
'ptr': '2.0.1.10.in-addr.arpa',
'public_ip': '172.16.1.100',
Expand Down

0 comments on commit 84a5a7f

Please sign in to comment.