Fix invalid count index (#5469)

This commit is contained in:
Kessler 2020-01-02 10:57:39 +01:00 committed by Kubernetes Prow Robot
parent 94956ebde9
commit 3c3ebc05cc

View file

@ -43,7 +43,7 @@ resource "openstack_networking_secgroup_rule_v2" "bastion" {
port_range_min = "22" port_range_min = "22"
port_range_max = "22" port_range_max = "22"
remote_ip_prefix = "${var.bastion_allowed_remote_ips[count.index]}" remote_ip_prefix = "${var.bastion_allowed_remote_ips[count.index]}"
security_group_id = "${openstack_networking_secgroup_v2.bastion[count.index].id}" security_group_id = "${openstack_networking_secgroup_v2.bastion[0].id}"
} }
resource "openstack_networking_secgroup_v2" "k8s" { resource "openstack_networking_secgroup_v2" "k8s" {