Browse Source

fix: incorrect condition type (#8822)

Signed-off-by: cyclinder qifeng.guo@daocloud.io
pull/8822/merge
Cyclinder 2 years ago
committed by GitHub
parent
commit
dc8ad78206
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      contrib/terraform/openstack/modules/compute/main.tf

2
contrib/terraform/openstack/modules/compute/main.tf

@ -455,7 +455,7 @@ resource "openstack_compute_instance_v2" "etcd" {
} }
dynamic "scheduler_hints" { 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 { content {
group = openstack_compute_servergroup_v2.k8s_etcd[0].id group = openstack_compute_servergroup_v2.k8s_etcd[0].id
} }

Loading…
Cancel
Save