We may want to setup different kernels for different roles (as long as
all roles on the same node agree on their choice), so returning as soon
as 'distro' is seen is not right. Also, no need to use find() as
'distro' is always an exact match.
Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
:param config: Configuration
"""
procs = {}
- #Don't need to download distro kernels
for role, src in config.iteritems():
+ if src == 'distro':
+ # don't need to download distro kernels
+ log.debug("src is distro, skipping download");
+ continue
+
(role_remote,) = ctx.cluster.only(role).remotes.keys()
- if src.find('distro') >= 0:
- log.info('Installing newest kernel distro');
- return
package_type = teuthology.get_system_type(role_remote)
if src.find('/') >= 0:
# local deb