Merge "kolla-build: Wrap tpl_dict.keys() in a list()"

This commit is contained in:
Zuul 2018-06-29 04:41:24 +00:00 committed by Gerrit Code Review
commit 430f335a8b

View File

@ -891,7 +891,7 @@ class KollaWorker(object):
template = env.get_template(tpl_path)
if self.conf.template_override:
tpl_dict = self._merge_overrides(self.conf.template_override)
template_name = os.path.basename(tpl_dict.keys()[0])
template_name = os.path.basename(list(tpl_dict.keys())[0])
values['parent_template'] = template
env = jinja2.Environment( # nosec: not used to render HTML
loader=jinja2.DictLoader(tpl_dict))