]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
suite/util: convert iter items to list for py3
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Thu, 21 Nov 2019 15:03:53 +0000 (16:03 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Thu, 21 Nov 2019 21:16:10 +0000 (22:16 +0100)
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
teuthology/suite/util.py

index f4d939b2a55c7df0302c8b7f0f40535ac4ec5351..662f5c4ca527a77b7eeeffc90beb116344c97d31 100644 (file)
@@ -310,8 +310,8 @@ def get_install_task_flavor(job_config):
     project_overrides = install_overrides.get(project, dict())
     first_install_config = dict()
     for task in tasks:
-        if task.keys()[0] == 'install':
-            first_install_config = task.values()[0] or dict()
+        if list(task.keys())[0] == 'install':
+            first_install_config = list(task.values())[0] or dict()
             break
     first_install_config = copy.deepcopy(first_install_config)
     deep_merge(first_install_config, install_overrides)