Skip to content

Commit 7af143e

Browse files
authored
Merge pull request #21 from stackhpc/fix/undefined-vol-type
Add check for use_home_volume_type_fast definition
2 parents 683f017 + 5aa1089 commit 7af143e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roles/cluster_infra/templates/resources.tf.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ resource "openstack_blockstorage_volume_v3" "home" {
8282
name = "{{ cluster_name }}-home"
8383
description = "Home for control node"
8484
size = "{{ home_volume_size }}"
85-
{% if use_home_volume_type_fast and home_volume_type_fast is defined %}
85+
{% if use_home_volume_type_fast is defined and use_home_volume_type_fast %}
86+
{% if home_volume_type_fast is defined %}
8687
volume_type = "{{ home_volume_type_fast }}"
8788
{% endif %}
89+
{% endif %}
8890
}
8991

9092

0 commit comments

Comments
 (0)