Skip puppet-* projects for plugin search

openstack/puppet-* projects can be skipped to
search for tempest plugin.

Change-Id: I8ca7bd944f250b168077ffc8c82b9bddb338eddb
This commit is contained in:
ghanshyam 2018-02-01 02:17:08 +00:00 committed by Ghanshyam Mann
parent 11e74de2e8
commit 95b68befc4
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))