From 5472e06dc08410eb5037dab570f87b0b5da09aa5 Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Thu, 21 Nov 2019 16:03:53 +0100 Subject: [PATCH] suite/util: convert iter items to list for py3 Signed-off-by: Kyr Shatskyy --- teuthology/suite/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/suite/util.py b/teuthology/suite/util.py index f4d939b2a5..662f5c4ca5 100644 --- a/teuthology/suite/util.py +++ b/teuthology/suite/util.py @@ -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) -- 2.39.5