From 55ae94fdb6a6508f30c0eb0f5dfe95a11ac9682f Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 25 Sep 2019 22:31:36 +0200 Subject: Python3 compatibility --- roles/ands_kaas/templates/40-kaas-app-builders.yml.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/ands_kaas/templates/40-kaas-app-builders.yml.j2') diff --git a/roles/ands_kaas/templates/40-kaas-app-builders.yml.j2 b/roles/ands_kaas/templates/40-kaas-app-builders.yml.j2 index 50bef9a..d37c4d6 100644 --- a/roles/ands_kaas/templates/40-kaas-app-builders.yml.j2 +++ b/roles/ands_kaas/templates/40-kaas-app-builders.yml.j2 @@ -13,7 +13,7 @@ metadata: labels: {{ applabels | to_json }} {% endif %} objects: -{% for name, builder in builders.iteritems() %} +{% for name, builder in builders.items() %} {% set isname = builder.name | default(name) | regex_replace('_','-') %} {% set istag = builder.version | default("latest") %} {% set bcname = isname if istag == 'latest' else isname + '-' + istag %} @@ -55,7 +55,7 @@ objects: dockerfilePath: "{{ builder.dockerfile | default('Dockerfile') }}" {% if builder.args is defined %} buildArgs: - {% for arg_name, arg_val in builder.args.iteritems() %} + {% for arg_name, arg_val in builder.args.items() %} - name: "{{ arg_name }}" value: "{{ arg_val }}" {% endfor %} -- cgit v1.2.3