Skip to content

Commit 71240a2

Browse files
committed
add check for whether user passed in their own pipeline before importing aiohttp
1 parent f96d0b4 commit 71240a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_shared/async_client_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, vault_url: str, credential: "AsyncTokenCredential", **kwargs:
5252
}
5353
)
5454

55-
if not transport:
55+
if not transport and not pipeline:
5656
from azure.core.pipeline.transport import AioHttpTransport
5757
transport = AioHttpTransport(**kwargs)
5858

0 commit comments

Comments
 (0)