Skip to content

Commit 6272799

Browse files
J JayasilanJ Jayasilan
authored andcommitted
f-string missed changes and indentation fix
1 parent ad8db7f commit 6272799

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

SoftLayer/CLI/user/detail.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def basic_info(user, keys):
7777
table.add_row(['Name', f"{user.get('firstName', '-')} {user.get('lastName', '-')}"])
7878
table.add_row(['Email', user.get('email')])
7979
table.add_row(['OpenID', user.get('openIdConnectUserName')])
80-
address = f"{user.get('address1')} {user.get('address2')} {user.get('city')} {user.get('state')} {user.get('country')} {user.get('postalCode')}"
80+
address = f"{user.get('address1')} \
81+
{user.get('address2')} {user.get('city')} {user.get('state')} {user.get('country')} {user.get('postalCode')}"
8182
table.add_row(['Address', address])
8283
table.add_row(['Company', user.get('companyName')])
8384
table.add_row(['Created', user.get('createDate')])

SoftLayer/CLI/virt/create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def _build_receipt_table(result, billing="hourly", test=False):
273273
rate += float(item.get('recurringFee', 0.000))
274274
total += rate
275275
table.add_row([rate, item['item']['description']])
276-
table.add_row([f"{total:.3f}" % total, f"Total {billing} cost"])
276+
table.add_row([f"{total:.3f}", f"Total {billing} cost"])
277277
return table
278278

279279

SoftLayer/CLI/virt/detail.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def cli(env, identifier, passwords=False, price=False):
7171
table.add_row(['modified', result['modifyDate']])
7272
last_transaction = ''
7373
if result.get('lastTransaction'):
74-
last_transaction = f"{utils.lookup(result, 'lastTransaction', 'transactionGroup', 'name')} ({utils.clean_time(utils.lookup(result, 'lastTransaction', 'modifyDate'))})"
74+
last_transaction = f"{utils.lookup(result, 'lastTransaction', 'transactionGroup', 'name')} \
75+
({utils.clean_time(utils.lookup(result, 'lastTransaction', 'modifyDate'))})"
7576

7677
table.add_row(['last_transaction', last_transaction])
7778
table.add_row(['billing', 'Hourly' if result['hourlyBillingFlag'] else 'Monthly'])

SoftLayer/CLI/vpn/ipsec/subnet/remove.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ def cli(env, context_id, subnet_id, subnet_type):
4747
if succeeded:
4848
env.out(f'Removed {subnet_type} subnet #{subnet_id}')
4949
else:
50-
raise CLIHalt(f'Failed to remove {subnet_type} subnet #{subnet_id}')
50+
raise CLIHalt(f'Failed to remove {subnet_type} subnet #{subnet_id}')

0 commit comments

Comments
 (0)