Don't generate IDs with the name of loaded integrations (#2373)

This commit is contained in:
Oxan van Leeuwen 2021-09-22 19:07:57 +02:00 committed by GitHub
parent ed3ad615d8
commit 0406e27100
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -312,7 +312,7 @@ class ID:
if self.id is None:
base = str(self.type).replace("::", "_").lower()
name = "".join(c for c in base if c.isalnum() or c == "_")
used = set(registered_ids) | set(RESERVED_IDS)
used = set(registered_ids) | set(RESERVED_IDS) | CORE.loaded_integrations
self.id = ensure_unique_string(name, used)
return self.id