fix: incorrect condition type (#8822)

Signed-off-by: cyclinder qifeng.guo@daocloud.io
This commit is contained in:
Cyclinder 2022-05-14 05:09:56 +08:00 committed by GitHub
parent 48e938660d
commit dc8ad78206
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}