]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Call update_grub_rpm() with correct version 521/head
authorZack Cerza <zack@redhat.com>
Tue, 16 Jun 2015 15:48:24 +0000 (09:48 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 16 Jun 2015 16:11:08 +0000 (10:11 -0600)
It was being called with 'distro', which won't work

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/kernel.py

index decb895117b162cfdf5934645616576de5d60859..d523c5b3c32ba8a7583bf0d2dabc990407d766e9 100644 (file)
@@ -734,7 +734,7 @@ def install_kernel(remote, path=None, version=None):
             # could have been built with upstream rpm targets with specs that
             # don't have a %post section at all, which means no initrd.
             maybe_generate_initrd_rpm(remote, path, version)
-        elif not version:
+        elif not version or version == 'distro':
             version = get_latest_image_version_rpm(remote)
         update_grub_rpm(remote, version)
         remote.run( args=['sudo', 'shutdown', '-r', 'now'], wait=False )