Skip to content

Commit 8bf29e4

Browse files
author
caberos
committed
fix tox tool
1 parent 81afeaf commit 8bf29e4

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

SoftLayer/CLI/custom_types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import click
1010

1111

12+
# pylint: disable=inconsistent-return-statements
1213
class NetworkParamType(click.ParamType):
1314
"""Validates a network parameter type and converts to a tuple.
1415
@@ -18,7 +19,7 @@ class NetworkParamType(click.ParamType):
1819
"""
1920
name = 'network'
2021

21-
def convert(self, value, param, ctx): # pylint: disable=inconsistent-return-statements
22+
def convert(self, value, param, ctx):
2223
try:
2324
# Inlined from python standard ipaddress module
2425
# https://docs.python.org/3/library/ipaddress.html

SoftLayer/CLI/report/bandwidth.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,8 @@ def _get_virtual_bandwidth(env, start, end):
175175
@click.option(
176176
'--start',
177177
callback=_validate_datetime,
178-
default=(
179-
datetime.datetime.now() - datetime.timedelta(days=30)
180-
).strftime('%Y-%m-%d'),
178+
default=(datetime.datetime.now() - datetime.timedelta(days=30)
179+
).strftime('%Y-%m-%d'),
181180
help="datetime in the format 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS'")
182181
@click.option(
183182
'--end',
@@ -187,9 +186,11 @@ def _get_virtual_bandwidth(env, start, end):
187186
@click.option('--sortby', help='Column to sort by',
188187
default='hostname',
189188
show_default=True)
190-
@click.option('--virtual', is_flag=True, help='Show the all bandwidth summary for each virtual server',
189+
@click.option('--virtual', is_flag=True,
190+
help='Show the all bandwidth summary for each virtual server',
191191
default=False)
192-
@click.option('--server', is_flag=True, help='show the all bandwidth summary for each hardware server',
192+
@click.option('--server', is_flag=True,
193+
help='show the all bandwidth summary for each hardware server',
193194
default=False)
194195
@environment.pass_env
195196
def cli(env, start, end, sortby, virtual, server):

0 commit comments

Comments
 (0)