summaryrefslogtreecommitdiffstats
path: root/roles/openshift_persistent_volumes
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-03-11 19:22:19 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-03-11 19:22:19 +0100
commit9c475cff32d20ec969205ea6eb1c1e6053dcdd6f (patch)
tree122dc3952270b3a988941307bef4d211d5f07f83 /roles/openshift_persistent_volumes
parenta5e4db35a4a13612202758f893ab30360d98b9d4 (diff)
downloadopenshift-9c475cff32d20ec969205ea6eb1c1e6053dcdd6f.tar.gz
openshift-9c475cff32d20ec969205ea6eb1c1e6053dcdd6f.tar.bz2
openshift-9c475cff32d20ec969205ea6eb1c1e6053dcdd6f.tar.xz
openshift-9c475cff32d20ec969205ea6eb1c1e6053dcdd6f.zip
Fixes typos in hosted registry code used to provide GlusterFS supoort
Diffstat (limited to 'roles/openshift_persistent_volumes')
-rw-r--r--roles/openshift_persistent_volumes/templates/persistent-volume-claim.yml.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_persistent_volumes/templates/persistent-volume-claim.yml.j2 b/roles/openshift_persistent_volumes/templates/persistent-volume-claim.yml.j2
index ca8b747ee..ce155333a 100644
--- a/roles/openshift_persistent_volumes/templates/persistent-volume-claim.yml.j2
+++ b/roles/openshift_persistent_volumes/templates/persistent-volume-claim.yml.j2
@@ -12,7 +12,7 @@ items:
resources:
requests:
storage: "{{ claim.capacity }}"
-{% if claim.storageclass is not None %}
+{% if claim.storageclass is defined and claim.storageclass is not none %}
storageClassName: "{{ claim.storageclass }}"
{% endif %}
{% endfor %}