]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Don't attempt to iterate over a bool
authorZack Cerza <zack@redhat.com>
Mon, 15 Jun 2015 22:56:08 +0000 (16:56 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 15 Jun 2015 23:27:27 +0000 (17:27 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/kernel.py

index 069b7e68bf8ba9bcca2c8eb658d784c3ac0c189b..710ae971c4ddce4dd7645b64a5753ae8a1fc9374 100644 (file)
@@ -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: