From dc8ad7820613ad3b20502a8a3499359b3605cd9e Mon Sep 17 00:00:00 2001 From: Cyclinder Date: Sat, 14 May 2022 05:09:56 +0800 Subject: [PATCH] fix: incorrect condition type (#8822) Signed-off-by: cyclinder qifeng.guo@daocloud.io --- contrib/terraform/openstack/modules/compute/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/terraform/openstack/modules/compute/main.tf b/contrib/terraform/openstack/modules/compute/main.tf index 16898353a..15470dc2e 100644 --- a/contrib/terraform/openstack/modules/compute/main.tf +++ b/contrib/terraform/openstack/modules/compute/main.tf @@ -455,7 +455,7 @@ resource "openstack_compute_instance_v2" "etcd" { } dynamic "scheduler_hints" { - for_each = var.etcd_server_group_policy ? [openstack_compute_servergroup_v2.k8s_etcd[0]] : [] + for_each = var.etcd_server_group_policy != "" ? [openstack_compute_servergroup_v2.k8s_etcd[0]] : [] content { group = openstack_compute_servergroup_v2.k8s_etcd[0].id }