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/00-local-volumes.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/ands_kaas/templates/00-local-volumes.yml.j2') diff --git a/roles/ands_kaas/templates/00-local-volumes.yml.j2 b/roles/ands_kaas/templates/00-local-volumes.yml.j2 index a97ffae..ff47501 100644 --- a/roles/ands_kaas/templates/00-local-volumes.yml.j2 +++ b/roles/ands_kaas/templates/00-local-volumes.yml.j2 @@ -6,7 +6,7 @@ metadata: annotations: descriptions: "{{ kaas_project }} local volumes" objects: -{% for name, vol in kaas_project_local_volumes.iteritems() %} +{% for name, vol in kaas_project_local_volumes.items() %} {% set voltypes = kaas_storage_domains | json_query("[*].volumes." + vol.volume + ".type") %} {% set voltype = voltypes[0] | default('host') %} {% set mntpaths = kaas_storage_domains | json_query("[*].volumes." + vol.volume + ".mount") %} -- cgit v1.2.3