diff sat/memory/disco.py @ 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 524856bd7b19
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