Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit 8e05584

Browse files
🦉 Updates from OwlBot
1 parent 3a25253 commit 8e05584

File tree

1 file changed

+5
-3
lines changed
  • google/cloud/kms_v1/services/key_management_service/transports

1 file changed

+5
-3
lines changed

google/cloud/kms_v1/services/key_management_service/transports/base.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from google.api_core import gapic_v1 # type: ignore
2525
from google.api_core import retry as retries # type: ignore
2626
from google.auth import credentials as ga_credentials # type: ignore
27-
from google.oauth2 import service_account # type: ignore
27+
from google.oauth2 import service_account # type: ignore
2828

2929
from google.cloud.kms_v1.types import resources
3030
from google.cloud.kms_v1.types import service
@@ -119,9 +119,11 @@ def __init__(
119119
credentials, _ = google.auth.default(
120120
**scopes_kwargs, quota_project_id=quota_project_id
121121
)
122-
122+
123123
# If the credentials is service account credentials, then always try to use self signed JWT.
124-
if isinstance(credentials, service_account.Credentials) and hasattr(service_account.Credentials, "with_always_use_jwt_access"):
124+
if isinstance(credentials, service_account.Credentials) and hasattr(
125+
service_account.Credentials, "with_always_use_jwt_access"
126+
):
125127
credentials = credentials.with_always_use_jwt_access(True)
126128

127129
# Save the credentials.

0 commit comments

Comments
 (0)