Skip to content

Commit 28d298f

Browse files
caberoscaberos
authored andcommitted
fix the merge conflicts
2 parents 926f481 + 963fe01 commit 28d298f

File tree

7 files changed

+32
-14
lines changed

7 files changed

+32
-14
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Use `allow` to specify which dependencies to maintain
2+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-update
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "pip"
7+
directory: "/"
8+
schedule:
9+
interval: "weekly"
10+
commit-message:
11+
prefix: "pip prod"
12+
prefix-development: "pip dev"
13+
include: "scope"

SoftLayer/CLI/block/options.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ def cli(env):
2727
iops_table = formatting.Table(['Id', 'Description', 'KeyName'], title='IOPS')
2828
snapshot_table = formatting.Table(['Id', 'Description', 'KeyName'], title='Snapshot')
2929
storage_table = formatting.Table(['Id', 'Description', 'KeyName'], title='Storage')
30-
datacenter_table = formatting.Table(['Id', 'Description', 'KeyName', 'Notes'], title='Datacenter')
30+
datacenter_table = formatting.Table(['Id', 'Description', 'KeyName'], title='Datacenter')
31+
32+
storage_table.align['Description'] = 'l'
33+
storage_table.align['KeyName'] = 'l'
34+
storage_table.sortby = 'Id'
3135

3236
for datacenter in datacenters:
3337
closure = []
@@ -45,7 +49,7 @@ def cli(env):
4549
for item in items:
4650
if item['itemCategory']['categoryCode'] == 'performance_storage_space':
4751
storage_table.add_row([item.get('id'), item.get('description'),
48-
item.get('keyName')])
52+
item.get('keyName'), item.get('capacityMinimum') or '-'])
4953

5054
if item['itemCategory']['categoryCode'] == 'storage_tier_level':
5155
iops_table.add_row([item.get('id'), item.get('description'),

SoftLayer/CLI/dedicatedhost/create_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ def cli(env, **kwargs):
5858
br_table.add_row([router['hostname']])
5959
tables.append(br_table)
6060

61-
env.fout(formatting.listing(tables, separator='\n'))
61+
env.fout(tables)

SoftLayer/CLI/file/options.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from SoftLayer.CLI import environment
99
from SoftLayer.CLI import formatting
1010

11-
1211
PACKAGE_STORAGE = 759
1312

1413

@@ -27,8 +26,12 @@ def cli(env):
2726

2827
iops_table = formatting.Table(['Id', 'Description', 'KeyName'], title='IOPS')
2928
snapshot_table = formatting.Table(['Id', 'Description', 'KeyName'], title='Snapshot')
30-
storage_table = formatting.Table(['Id', 'Description', 'KeyName'], title='Storage')
31-
datacenter_table = formatting.Table(['Id', 'Description', 'KeyName', 'Notes'], title='Datacenter')
29+
file_storage_table = formatting.Table(['Id', 'Description', 'KeyName'], title='Storage')
30+
datacenter_table = formatting.Table(['Id', 'Description', 'KeyName'], title='Datacenter')
31+
32+
file_storage_table.align['Description'] = 'l'
33+
file_storage_table.align['KeyName'] = 'l'
34+
file_storage_table.sortby = 'Id'
3235

3336
for datacenter in datacenters:
3437
closure = []
@@ -45,8 +48,8 @@ def cli(env):
4548

4649
for item_file in items:
4750
if item_file['itemCategory']['categoryCode'] == 'performance_storage_space':
48-
storage_table.add_row([item_file.get('id'), item_file.get('description'),
49-
item_file.get('keyName')])
51+
file_storage_table.add_row([item_file.get('id'), item_file.get('description'),
52+
item_file.get('keyName')])
5053

5154
if item_file['itemCategory']['categoryCode'] == 'storage_tier_level':
5255
iops_table.add_row([item_file.get('id'), item_file.get('description'),
@@ -58,5 +61,5 @@ def cli(env):
5861

5962
env.fout(datacenter_table)
6063
env.fout(iops_table)
61-
env.fout(storage_table)
64+
env.fout(file_storage_table)
6265
env.fout(snapshot_table)

SoftLayer/CLI/hardware/create_options.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ def cli(env, prices, location=None):
5151
tables.append(_port_speed_prices_table(options['port_speeds'], prices))
5252
tables.append(_extras_prices_table(options['extras'], prices))
5353
tables.append(_get_routers(routers))
54-
55-
# since this is multiple tables, this is required for a valid JSON object to be rendered.
56-
env.fout(formatting.listing(tables, separator='\n'))
54+
env.fout(tables)
5755

5856

5957
def _preset_prices_table(sizes, prices=False):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
'prompt_toolkit >= 2',
4141
'pygments >= 2.0.0',
4242
'urllib3 >= 1.24',
43-
'rich == 12.3.0'
43+
'rich == 12.5.1'
4444
],
4545
keywords=['softlayer', 'cloud', 'slcli'],
4646
classifiers=[

tools/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ requests >= 2.20.0
44
prompt_toolkit >= 2
55
pygments >= 2.0.0
66
urllib3 >= 1.24
7-
rich == 12.3.0
7+
rich == 12.5.1
88
# only used for soap transport
99
# softlayer-zeep >= 5.0.0

0 commit comments

Comments
 (0)