Skip to content

Commit

Permalink
Remove syntax that results in lists within lists
Browse files Browse the repository at this point in the history
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 [].
  • Loading branch information
alexng-canuck committed May 7, 2019
1 parent ecf943c commit d194797
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/iam-dynamic-group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ resource "oci_identity_policy" "this" {
name = "${var.policy_name}"
description = "${var.policy_description}"
compartment_id = "${var.policy_compartment_id}"
statements = ["${var.policy_statements}"]
statements = "${var.policy_statements}"
}
2 changes: 1 addition & 1 deletion modules/iam-group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ resource "oci_identity_policy" "this" {
name = "${var.policy_name}"
description = "${var.policy_description}"
compartment_id = "${var.policy_compartment_id}"
statements = ["${var.policy_statements}"]
statements = "${var.policy_statements}"
}

0 comments on commit d194797

Please sign in to comment.