summaryrefslogtreecommitdiffstats
path: root/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2')
-rw-r--r--roles/openshift_persistent_volumes/templates/persistent-volume.yml.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2 b/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2
index ee9dac7cb..9ec14208b 100644
--- a/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2
+++ b/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2
@@ -17,5 +17,5 @@ items:
capacity:
storage: "{{ volume.capacity }}"
accessModes: {{ volume.access_modes | to_padded_yaml(2, 2) }}
- {{ volume.storage.keys()[0] }}: {{ volume.storage[volume.storage.keys()[0]] | to_padded_yaml(3, 2) }}
+ {{ (volume.storage.keys() | list)[0] }}: {{ volume.storage[(volume.storage.keys() | list)[0]] | to_padded_yaml(3, 2) }}
{% endfor %}