Skip to content

Commit 421b558

Browse files
committed
linter
1 parent bc62da2 commit 421b558

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/azure-cli-core/azure/cli/core/_profile.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,15 +398,13 @@ def get_login_credentials(self, subscription_id=None, aux_subscriptions=None, au
398398
if in_cloud_console() and account[_USER_ENTITY].get(_CLOUD_SHELL_ID):
399399
# Cloud Shell
400400
from .auth.msal_credentials import CloudShellCredential
401-
from azure.cli.core.auth.credential_adaptor import CredentialAdaptor
402401
# The credential must be wrapped by CredentialAdaptor so that it can work with Track 1 SDKs.
403402
cred = CredentialAdaptor(CloudShellCredential())
404403

405404
elif managed_identity_type:
406405
# managed identity
407406
if _on_azure_arc():
408407
from .auth.msal_credentials import ManagedIdentityCredential
409-
from azure.cli.core.auth.credential_adaptor import CredentialAdaptor
410408
# The credential must be wrapped by CredentialAdaptor so that it can work with Track 1 SDKs.
411409
cred = CredentialAdaptor(ManagedIdentityCredential())
412410
else:
@@ -432,7 +430,6 @@ def get_login_credentials(self, subscription_id=None, aux_subscriptions=None, au
432430
external_credentials = []
433431
for external_tenant in external_tenants:
434432
external_credentials.append(self._create_credential(account, tenant_id=external_tenant))
435-
from azure.cli.core.auth.credential_adaptor import CredentialAdaptor
436433
cred = CredentialAdaptor(credential, auxiliary_credentials=external_credentials)
437434

438435
return (cred,

0 commit comments

Comments
 (0)