Skip to content

Commit 861781c

Browse files
fix(no-ticket): drop manual initialize_api as its done in the decorator (#201)
1 parent a4395c2 commit 861781c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cloudsmith_cli/cli/commands/auth.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import click
66

77
from ...core.api import exceptions, user
8-
from ...core.api.init import initialise_api
98
from ...core.config import create_config_files, new_config_messaging
109
from .. import decorators, validators
1110
from ..exceptions import handle_api_exceptions
@@ -73,7 +72,6 @@ def authenticate(ctx, opts, owner, token):
7372
if not token:
7473
return
7574

76-
initialise_api()
7775
try:
7876
api_token = user.create_user_token_saml()
7977
click.echo(f"New token value: {click.style(api_token.key, fg='magenta')}")

0 commit comments

Comments
 (0)