Skip to content

Commit fdeae2c

Browse files
#2046 tox fixes
1 parent fdea981 commit fdeae2c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

SoftLayer/CLI/command.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def format_options(self, ctx, formatter):
233233

234234
# secondary_opts are usually for flags --enable/--disable
235235
if len(param.secondary_opts) == 1:
236-
opt2 += Text(f"|") + self.highlighter(param.secondary_opts[0])
236+
opt2 += Text("|") + self.highlighter(param.secondary_opts[0])
237237

238238
help_record = param.get_help_record(ctx)
239239
help_message = ""
@@ -245,7 +245,6 @@ def format_options(self, ctx, formatter):
245245
choices = ", ".join(param.type.choices)
246246
help_message += f" Choices: {choices}"
247247

248-
249248
options_table.add_row(opt1, opt2, self.highlighter(help_message))
250249

251250
self.console.print(options_table)

SoftLayer/CLI/virt/capacity/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class CapacityCommands(CommandLoader):
2121
"""
2222

2323
def __init__(self, **attrs):
24-
click.MultiCommand.__init__(self, **attrs)
24+
CommandLoader.__init__(self, **attrs)
2525
self.path = os.path.dirname(__file__)
2626
self.highlighter = OptionHighlighter()
2727
self.env = None

SoftLayer/CLI/virt/placementgroup/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class PlacementGroupCommands(CommandLoader):
2020
"""
2121

2222
def __init__(self, **attrs):
23-
click.MultiCommand.__init__(self, **attrs)
23+
CommandLoader.__init__(self, **attrs)
2424
self.path = os.path.dirname(__file__)
2525
self.highlighter = OptionHighlighter()
2626
self.env = None

0 commit comments

Comments
 (0)