Skip to content

Commit d194797

Browse files
committed
Remove syntax that results in lists within lists
In v0.11, Terraform allows [] around values known to be lists, essentially resulting in a nested list that is implicitly flattened by Terraform. In v0.12, this is no longer the case. If a value is known to be a list, it is no longer necessary to wrap it in [].
1 parent ecf943c commit d194797

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/iam-dynamic-group/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ resource "oci_identity_policy" "this" {
3434
name = "${var.policy_name}"
3535
description = "${var.policy_description}"
3636
compartment_id = "${var.policy_compartment_id}"
37-
statements = ["${var.policy_statements}"]
37+
statements = "${var.policy_statements}"
3838
}

modules/iam-group/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ resource "oci_identity_policy" "this" {
4747
name = "${var.policy_name}"
4848
description = "${var.policy_description}"
4949
compartment_id = "${var.policy_compartment_id}"
50-
statements = ["${var.policy_statements}"]
50+
statements = "${var.policy_statements}"
5151
}

0 commit comments

Comments
 (0)