From 4a201bc0f264f3126edcdf54175bf912afe1db7d Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 13 May 2022 17:56:40 +0200 Subject: [PATCH] core (memory/disco): fix hard encoded value in `findServiceEntity` --- sat/memory/disco.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat/memory/disco.py b/sat/memory/disco.py index 5a143133..7bcc6b97 100755 --- a/sat/memory/disco.py +++ b/sat/memory/disco.py @@ -303,7 +303,7 @@ class Discovery(object): 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