Merge "static resources not picked up"

This commit is contained in:
Zuul 2017-12-12 21:07:38 +00:00 committed by Gerrit Code Review
commit 82e4146d01
1 changed files with 5 additions and 5 deletions

View File

@ -103,11 +103,11 @@ class Resources(object):
if self._resources:
static_resources_group = self.agent_manager.construct_group_id(
utils.hash_of_set(self._resources))
if self.agent_manager.partition_coordinator:
return [v for v in self._resources if
self.agent_manager.hashrings[
static_resources_group].belongs_to_self(
six.text_type(v))] + source_discovery
return [v for v in self._resources if
not self.agent_manager.partition_coordinator or
self.agent_manager.hashrings[
static_resources_group].belongs_to_self(
six.text_type(v))] + source_discovery
return source_discovery