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(),
|
packages=find_packages(),
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'requests',
|
'requests',
|
||||||
'python-decouple',
|
|
||||||
'pyotp',
|
'pyotp',
|
||||||
'click'
|
'click'
|
||||||
],
|
],
|
||||||
|
|
|
@ -26,7 +26,7 @@ def make_request(*args, data=None, request_method=requests.post):
|
||||||
print('Error occurred while getting output from api server.')
|
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:
|
if value is not None:
|
||||||
try:
|
try:
|
||||||
token = TOTP(value).now()
|
token = TOTP(value).now()
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
from uncloud_cli.commands.helper import add_otp_options, make_request
|
|
||||||
|
|
||||||
import click
|
import click
|
||||||
import requests
|
|
||||||
|
from uncloud_cli.commands.helper import add_otp_options, make_request
|
||||||
|
|
||||||
|
|
||||||
@click.group()
|
@click.group()
|
||||||
|
|
Loading…
Reference in a new issue