浏览代码

Use local variable instead of global one in template

Diego Abelenda 7 年之前
父节点
当前提交
6aab2ed7d2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      roles/openshift_persistentlocalstorage/templates/local-persistent-volume-config.j2

+ 1 - 1
roles/openshift_persistentlocalstorage/templates/local-persistent-volume-config.j2

@@ -2,7 +2,7 @@
 apiVersion: v1
 data:
 {% for class in persistentlocalstorage_classes %}
-  {{class}}: '{ "hostDir": "{{ openshift_persistentlocalstorage_path }}/{{ class }}", "mountDir" : "{{ openshift_persistentlocalstorage_path }}/{{ class }}" }'
+  {{class}}: '{ "hostDir": "{{ persistentlocalstorage_path }}/{{ class }}", "mountDir" : "{{ persistentlocalstorage_path }}/{{ class }}" }'
 {% endfor %}
 kind: ConfigMap
 metadata: