Little bit of refactoring
This commit is contained in:
parent
436cb881b2
commit
1df45d5901
3 changed files with 3 additions and 5 deletions
1
setup.py
1
setup.py
|
@ -20,7 +20,6 @@ setup(name='uncloud_cli',
|
|||
packages=find_packages(),
|
||||
install_requires=[
|
||||
'requests',
|
||||
'python-decouple',
|
||||
'pyotp',
|
||||
'click'
|
||||
],
|
||||
|
|
|
@ -26,7 +26,7 @@ def make_request(*args, data=None, request_method=requests.post):
|
|||
print('Error occurred while getting output from api server.')
|
||||
|
||||
|
||||
def get_token(ctx, param, value):
|
||||
def get_token(_, param, value):
|
||||
if value is not None:
|
||||
try:
|
||||
token = TOTP(value).now()
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
from uncloud_cli.commands.helper import add_otp_options, make_request
|
||||
|
||||
import click
|
||||
import requests
|
||||
|
||||
from uncloud_cli.commands.helper import add_otp_options, make_request
|
||||
|
||||
|
||||
@click.group()
|
||||
|
|
Loading…
Reference in a new issue