Skip to content

Commit 5180345

Browse files
committed
update
1 parent 1d66693 commit 5180345

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ def get_raw_token(self, resource=None, scopes=None, subscription=None, tenant=No
374374
cred = MsiAccountTypes.msal_credential_factory(managed_identity_type, managed_identity_id)
375375
if credential_out:
376376
credential_out['credential'] = cred
377-
sdk_cred = CredentialAdaptor(cred)
378377

379378
else:
380379
cred = self._create_credential(account, tenant_id=tenant)

src/azure-cli-core/azure/cli/core/auth/credential_adaptor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def _build_sdk_access_token_info(token_entry):
7676
# 'token_source': 'cache'
7777
# }
7878
from .constants import ACCESS_TOKEN, EXPIRES_IN
79-
from .util import _now_timestamp
79+
from .util import now_timestamp
8080
from azure.core.credentials import AccessTokenInfo
8181

82-
return AccessTokenInfo(token_entry[ACCESS_TOKEN], _now_timestamp() + token_entry[EXPIRES_IN])
82+
return AccessTokenInfo(token_entry[ACCESS_TOKEN], now_timestamp() + token_entry[EXPIRES_IN])

0 commit comments

Comments
 (0)