]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
kernel: recognize flavor key 506/head
authorIlya Dryomov <idryomov@gmail.com>
Thu, 28 May 2015 17:47:42 +0000 (20:47 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 28 May 2015 23:58:13 +0000 (02:58 +0300)
Since commit 7da76fa78f63 ("Use kernel_flavor when polling
gitbuilders"), teuthology-suite appends 'flavor: basic' to kernel task
config.  This broke all scheduled kernel suites, because
normalize_config() treats unknown keys as role types and when it
doesn't find a valid one it bails and returns {}, which means "do
nothing".

Fix this temporarily by adding flavor to a list of recognized keys.
This is wrong a bunch of levels, but it fixes a regression while
sticking to the way normalize_config() currently works.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
teuthology/task/kernel.py

index 9149786bb56eb786f99067dd584b9e9aa5c49832..b00bb2d4350eca88b364f0425739e1970863d2c4 100644 (file)
@@ -69,7 +69,8 @@ def normalize_config(ctx, config):
     """
     if config is None or \
             len(filter(lambda x: x in ['tag', 'branch', 'sha1', 'kdb',
-                                       'deb', 'rpm', 'koji', 'koji_task'],
+                                       'deb', 'rpm', 'koji', 'koji_task',
+                                       'flavor'],
                        config.keys())) == len(config.keys()):
         new_config = {}
         if config is None: