memory: fixes issue in a test

This commit is contained in:
souliane 2014-10-22 18:58:29 +02:00
commit 0da2c0228f

View file

@ -495,7 +495,7 @@ class Memory(object):
if not profile:
raise exceptions.ProfileUnknownError(_('Trying to get entity data for a non-existant profile'))
entities_data = self._getEntitiesData(entity_jid, profile)
if entity_jid.resource and entity_jid != C.ENTITY_ALL:
if entity_jid != C.ENTITY_ALL and entity_jid.resource:
self._updateEntityResources(entity_jid, profile)
for jid_ in entities_data: