@@ -68,8 +68,8 @@ def cli(env, identifier, memory, network, drive_controller, public_bandwidth, ad
6868 if test :
6969 add_data_to_table (response , table )
7070 else :
71- table .add_row (['order_date ' , response .get ('orderDate' )])
72- table .add_row (['order_id ' , response .get ('orderId' )])
71+ table .add_row (['Order Date ' , response .get ('orderDate' )])
72+ table .add_row (['Order Id ' , response .get ('orderId' )])
7373 add_data_to_table (response ['orderDetails' ], table )
7474 place_order_table = get_place_order_information (response )
7575 table .add_row (['Place Order Information' , place_order_table ])
@@ -83,21 +83,21 @@ def add_data_to_table(response, table):
8383 """Add the hardware server upgrade result to the table"""
8484 table .add_row (['location' , utils .lookup (response , 'locationObject' , 'longName' )])
8585 table .add_row (['quantity' , response .get ('quantity' )])
86- table .add_row (['package_id ' , response .get ('packageId' )])
87- table .add_row (['currency_short_name ' , response .get ('currencyShortName' )])
88- table .add_row (['prorated_initial_charge ' , response .get ('proratedInitialCharge' )])
89- table .add_row (['prorated_order_total ' , response .get ('proratedOrderTotal' )])
90- table .add_row (['use_hourly_pricing ' , response .get ('useHourlyPricing' )])
86+ table .add_row (['Package Id ' , response .get ('packageId' )])
87+ table .add_row (['Currency Short Name ' , response .get ('currencyShortName' )])
88+ table .add_row (['Prorated Initial Charge ' , response .get ('proratedInitialCharge' )])
89+ table .add_row (['Prorated Order Total ' , response .get ('proratedOrderTotal' )])
90+ table .add_row (['Hourly Pricing ' , response .get ('useHourlyPricing' )])
9191 table_hardware = get_hardware_detail (response )
9292 table .add_row (['Hardware' , table_hardware ])
9393 table_prices = get_hardware_prices (response )
94- table .add_row (['prices ' , table_prices ])
94+ table .add_row (['Prices ' , table_prices ])
9595
9696
9797def get_place_order_information (response ):
9898 """Get the hardware server place order information."""
99- table_place_order = formatting .Table (['id ' , 'account_id ' , 'status ' , 'Account CompanyName' ,
100- 'UserRecord FirstName' , 'UserRecord lastName ' , 'UserRecord Username' ])
99+ table_place_order = formatting .Table (['Id ' , 'Account Id ' , 'Status ' , 'Account CompanyName' ,
100+ 'UserRecord FirstName' , 'UserRecord LastName ' , 'UserRecord Username' ])
101101 table_place_order .add_row ([response .get ('id' ),
102102 response .get ('accountId' ),
103103 response .get ('status' ),
@@ -111,8 +111,8 @@ def get_place_order_information(response):
111111
112112def get_hardware_detail (response ):
113113 """Get the hardware server detail."""
114- table_hardware = formatting .Table (['account_id ' , 'hostname ' , 'domain ' ])
115- for hardware in response ['hardware ' ]:
114+ table_hardware = formatting .Table (['Account Id ' , 'Hostname ' , 'Domain ' ])
115+ for hardware in response ['Hardware ' ]:
116116 table_hardware .add_row ([hardware .get ('accountId' ),
117117 hardware .get ('hostname' ),
118118 hardware .get ('domain' )])
@@ -122,7 +122,7 @@ def get_hardware_detail(response):
122122
123123def get_hardware_prices (response ):
124124 """Get the hardware server prices."""
125- table_prices = formatting .Table (['id ' , 'hourlyRecurringFee ' , 'recurringFee ' , 'categories ' , 'Item Description' ,
125+ table_prices = formatting .Table (['Id ' , 'HourlyRecurringFee ' , 'RecurringFee ' , 'Categories ' , 'Item Description' ,
126126 'Item Units' ])
127127 for price in response ['prices' ]:
128128 categories = price .get ('categories' )[0 ]
@@ -138,9 +138,9 @@ def get_hardware_prices(response):
138138
139139def get_order_detail (response ):
140140 """Get the hardware server order detail."""
141- table_order_detail = formatting .Table (['billing_city ' , 'billing_country_code ' , 'billing_email ' ,
142- 'billing_name_first ' , 'billing_name_last ' , 'billing_postal_code ' ,
143- 'billing_state ' ])
141+ table_order_detail = formatting .Table (['Billing City ' , 'Billing Country Code ' , 'Billing Email ' ,
142+ 'Billing Name First ' , 'Billing Name Last ' , 'Billing Postal Code ' ,
143+ 'Billing State ' ])
144144 table_order_detail .add_row ([utils .lookup (response , 'orderDetails' , 'billingInformation' , 'billingCity' ),
145145 utils .lookup (response , 'orderDetails' , 'billingInformation' , 'billingCountryCode' ),
146146 utils .lookup (response , 'orderDetails' , 'billingInformation' , 'billingEmail' ),
0 commit comments