Skip to content

Commit 72fda4d

Browse files
committed
Add network id when querying for subnet
1 parent 4fb3db0 commit 72fda4d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ resource "openstack_networking_subnet_v2" "this" {
3030
data "openstack_networking_subnet_v2" "created_subnets" {
3131
count = "${length(var.subnets)}"
3232

33-
name = "${element(openstack_networking_subnet_v2.this.*.name, count.index)}"
34-
}
33+
name = "${element(openstack_networking_subnet_v2.this.*.name, count.index)}"
34+
network_id = "${openstack_networking_network_v2.this.id}"
35+
}

0 commit comments

Comments
 (0)