# HG changeset patch # User Goffi # Date 1652457351 -7200 # Node ID 193b56ef58e0bfd8a06b3ab2ef3e9cb89b39c4b6 # Parent 9581098b64f0ec1714f9dd0402cd603141aaae97 core (disco): use new `client.server_jid` property in `getItems` diff -r 9581098b64f0 -r 193b56ef58e0 sat/memory/disco.py --- a/sat/memory/disco.py Fri May 13 17:52:43 2022 +0200 +++ b/sat/memory/disco.py Fri May 13 17:55:51 2022 +0200 @@ -258,11 +258,10 @@ @param use_cache(bool): if True, use cached data if available @return: a Deferred which fire disco.DiscoItems """ - server_jid = jid.JID(client.jid.host) if jid_ is None: - jid_ = server_jid + jid_ = client.server_jid - if jid_ == server_jid and not node: + if jid_ == client.server_jid and not node: # we cache items only for our own server and if node is not set try: items = self.host.memory.getEntityData(