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-block-volumes.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/ands_kaas/templates/00-block-volumes.yml.j2') diff --git a/roles/ands_kaas/templates/00-block-volumes.yml.j2 b/roles/ands_kaas/templates/00-block-volumes.yml.j2 index 9982d61..f313699 100644 --- a/roles/ands_kaas/templates/00-block-volumes.yml.j2 +++ b/roles/ands_kaas/templates/00-block-volumes.yml.j2 @@ -5,7 +5,7 @@ metadata: annotations: descriptions: "{{ kaas_project }} glusterfs block volumes" objects: -{% for name, vol in kaas_block_volumes.iteritems() %} +{% for name, vol in kaas_block_volumes.items() %} {% set oc_name = vol.name | default(name) | regex_replace('_','-') %} {% if oc_name | regex_search("^" + kaas_project) %} {% set pvname = oc_name %} -- cgit v1.2.3