mirror of https://github.com/celery/kombu.git
fix azure service bus isinstance check (#2053)
This commit is contained in:
parent
183c873519
commit
52d8b7f0d3
|
@ -141,8 +141,13 @@ class Channel(virtual.Channel):
|
|||
self._namespace, self._credential = Transport.parse_uri(
|
||||
self.conninfo.hostname)
|
||||
|
||||
if (isinstance(self._credential, DefaultAzureCredential) or
|
||||
isinstance(self._credential, ManagedIdentityCredential)):
|
||||
if (
|
||||
DefaultAzureCredential is not None
|
||||
and isinstance(self._credential, DefaultAzureCredential)
|
||||
) or (
|
||||
ManagedIdentityCredential is not None
|
||||
and isinstance(self._credential, ManagedIdentityCredential)
|
||||
):
|
||||
return None
|
||||
|
||||
if ":" in self._credential:
|
||||
|
|
Loading…
Reference in New Issue