Skip to content

Commit 531092f

Browse files
committed
v0.12 preparation: Fix metadata usage to be canonical
Fields such as "metadata" which are map types should be assigned with "=" operators. Without this change, this module will result in syntax errors in v0.12.
1 parent 5ee78f2 commit 531092f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ resource "oci_core_instance" "this" {
3030
subnet_id = "${data.oci_core_subnet.this.*.id[count.index % length(data.oci_core_subnet.this.*.id)]}"
3131
}
3232

33-
metadata {
33+
metadata = {
3434
ssh_authorized_keys = "${file("${var.ssh_authorized_keys}")}"
3535
user_data = "${var.user_data}"
3636
}

0 commit comments

Comments
 (0)