diff --git a/libervia/backend/plugins/plugin_misc_identity.py b/libervia/backend/plugins/plugin_misc_identity.py index 4560a640..0edf9088 100644 --- a/libervia/backend/plugins/plugin_misc_identity.py +++ b/libervia/backend/plugins/plugin_misc_identity.py @@ -733,7 +733,8 @@ class Identity: should be True most of time, to avoid useless network requests @return: identity data """ - id_data = {} + identities = [] + id_data = {"identities": identities} if not metadata_filter: metadata_names = self.metadata.keys() @@ -745,6 +746,15 @@ class Identity: client, metadata_name, entity, use_cache ) + if entity is not None: + try: + disco_infos = await self.host.memory.disco.get_infos(client, entity) + except Exception as e: + log.exception(f"Can't get disco infos for {entity}.") + else: + for (category, type_), name in disco_infos.identities.items(): + identities.append({"category": category, "type": type_, "name": name}) + return id_data def _get_identities(self, entities_s, metadata_filter, profile):