changeset 3751:073f386a191a

core (memory/disco): fix hard encoded value in `findServiceEntity`
author Goffi <goffi@goffi.org>
date Fri, 13 May 2022 17:56:40 +0200
parents 193b56ef58e0
children 5f546dd910e0
files sat/memory/disco.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat/memory/disco.py	Fri May 13 17:55:51 2022 +0200
+++ b/sat/memory/disco.py	Fri May 13 17:56:40 2022 +0200
@@ -303,7 +303,7 @@
         args are the same as for [findServiceEntities]
         @return (jid.JID, None): found entity
         """
-        d = self.host.findServiceEntities(client, "pubsub", "service")
+        d = self.host.findServiceEntities(client, category, type_)
         d.addCallback(lambda entities: entities.pop() if entities else None)
         return d