Merge "Skip puppet-* projects for plugin search"

This commit is contained in:
Zuul 2018-04-19 05:11:18 +00:00 committed by Gerrit Code Review
commit 11aa0360cd
1 changed files with 7 additions and 5 deletions

View File

@ -75,11 +75,13 @@ r = urllib.urlopen(url)
# json library won't choke.
projects = sorted(filter(is_in_openstack_namespace, json.loads(r.read()[4:])))
# Retrieve projects having no deb, ui or spec namespace as those namespaces
# do not contains tempest plugins.
projects_list = [i for i in projects if not (i.startswith('openstack/deb-') or
i.endswith('-ui') or
i.endswith('-specs'))]
# Retrieve projects having no deb, puppet, ui or spec namespace as those
# namespaces do not contains tempest plugins.
projects_list = [i for i in projects if not (
i.startswith('openstack/deb-') or
i.startswith('openstack/puppet-') or
i.endswith('-ui') or
i.endswith('-specs'))]
found_plugins = list(filter(has_tempest_plugin, projects_list))