Change catalog subsets factory implementation

This commit is contained in:
Roman Mogilatov 2015-10-14 18:34:50 +03:00
parent 4b22680406
commit 3b54763563

View File

@ -70,9 +70,8 @@ class AbstractCatalog(object):
Create subset of catalog providers using provider names.
"""
return Subset(*(provider
for name, provider in six.iteritems(cls.providers)
if name in provider_names))
return Subset(*(cls.get(provider_name)
for provider_name in provider_names))
@classmethod
def is_subset_owner(cls, subset):