From: Zack Cerza Date: Mon, 15 Jun 2015 22:56:08 +0000 (-0600) Subject: Don't attempt to iterate over a bool X-Git-Tag: 1.1.0~915 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d3de036498e58ab588bbdaf3a8282f1726a406fb;p=teuthology.git Don't attempt to iterate over a bool Signed-off-by: Zack Cerza --- diff --git a/teuthology/task/kernel.py b/teuthology/task/kernel.py index 069b7e68b..710ae971c 100644 --- a/teuthology/task/kernel.py +++ b/teuthology/task/kernel.py @@ -150,7 +150,7 @@ def need_to_install(ctx, role, version): cur_version = uname_fp.getvalue().rstrip('\n') log.debug('current kernel version is {ver}'.format(ver=cur_version)) - if '.' in version: + if '.' in str(version): # version is utsrelease, yay if cur_version == version: log.debug('utsrelease strings match, do not need to install') @@ -592,7 +592,7 @@ def wait_for_reboot(ctx, need_install, timeout, distro=False): while need_install: teuthology.reconnect(ctx, timeout) for client in need_install.keys(): - if 'distro' in need_install[client]: + if 'distro' in str(need_install[client]): distro = True log.info('Checking client {client} for new kernel version...'.format(client=client)) try: