Skip to content

Commit 4015177

Browse files
committed
Merge pull request softlayer#655 from sudorandom/make-pylint-happy
Fix New Pylint Errors
2 parents 1a77fc8 + b3e194c commit 4015177

147 files changed

Lines changed: 312 additions & 322 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

SoftLayer/CLI/call_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
"""Call arbitrary API endpoints."""
2+
import json
23

34
import click
45

5-
import json
6-
76
from SoftLayer.CLI import environment
87
from SoftLayer.CLI import formatting
98

SoftLayer/CLI/cdn/detail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""Detail a CDN Account."""
22
# :license: MIT, see LICENSE for more details.
33

4+
import click
5+
46
import SoftLayer
57
from SoftLayer.CLI import environment
68
from SoftLayer.CLI import formatting
79

8-
import click
9-
1010

1111
@click.command()
1212
@click.argument('account_id')

SoftLayer/CLI/cdn/list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""List CDN Accounts."""
22
# :license: MIT, see LICENSE for more details.
33

4+
import click
5+
46
import SoftLayer
57
from SoftLayer.CLI import environment
68
from SoftLayer.CLI import formatting
79

8-
import click
9-
1010

1111
@click.command()
1212
@click.option('--sortby',

SoftLayer/CLI/cdn/load.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""Cache one or more files on all edge nodes."""
22
# :license: MIT, see LICENSE for more details.
33

4+
import click
5+
46
import SoftLayer
57
from SoftLayer.CLI import environment
68

7-
import click
8-
99

1010
@click.command()
1111
@click.argument('account_id')

SoftLayer/CLI/cdn/origin_add.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
"""Create an origin pull mapping."""
22
# :license: MIT, see LICENSE for more details.
33

4+
import click
5+
46
import SoftLayer
57
from SoftLayer.CLI import environment
68

7-
import click
89
# pylint: disable=redefined-builtin
910

1011

SoftLayer/CLI/cdn/origin_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""List origin pull mappings."""
22
# :license: MIT, see LICENSE for more details.
33

4+
import click
5+
46
import SoftLayer
57
from SoftLayer.CLI import environment
68
from SoftLayer.CLI import formatting
79

8-
import click
9-
1010

1111
@click.command()
1212
@click.argument('account_id')

SoftLayer/CLI/cdn/origin_remove.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""Remove an origin pull mapping."""
22
# :license: MIT, see LICENSE for more details.
33

4+
import click
5+
46
import SoftLayer
57
from SoftLayer.CLI import environment
68

7-
import click
8-
99

1010
@click.command()
1111
@click.argument('account_id')

SoftLayer/CLI/cdn/purge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""Purge cached files from all edge nodes."""
22
# :license: MIT, see LICENSE for more details.
33

4+
import click
5+
46
import SoftLayer
57
from SoftLayer.CLI import environment
68

7-
import click
8-
99

1010
@click.command()
1111
@click.argument('account_id')

SoftLayer/CLI/config/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# :license: MIT, see LICENSE for more details.
33
import os.path
44

5+
import click
6+
57
import SoftLayer
68
from SoftLayer import auth
79
from SoftLayer.CLI import config
@@ -10,8 +12,6 @@
1012
from SoftLayer.CLI import formatting
1113
from SoftLayer import utils
1214

13-
import click
14-
1515

1616
def get_api_key(client, username, secret):
1717
"""Attempts API-Key and password auth to get an API key.

SoftLayer/CLI/config/show.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""Show current CLI configuration."""
22
# :license: MIT, see LICENSE for more details.
33

4+
import click
5+
46
from SoftLayer.CLI import config
57
from SoftLayer.CLI import environment
68

7-
import click
8-
99

1010
@click.command()
1111
@environment.pass_env

0 commit comments

Comments
 (0)