Skip to content

Commit

Permalink
Merge pull request #5 from oracle-terraform-modules/dev
Browse files Browse the repository at this point in the history
Roll back to user count condition.
  • Loading branch information
yimw authored Oct 25, 2018
2 parents 1b56b70 + 68e6959 commit 688c231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/iam-group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ resource "oci_identity_user_group_membership" "this" {
# https://github.com/hashicorp/terraform/issues/12570
# count = "${length(var.user_ids)}"
# use workaround here
count = "${var.group_create || length(lookup(local.group_ids[0], "id")) > 0 ? var.user_count : 0}"
count = "${var.user_count}"
user_id = "${var.user_ids[count.index]}"
group_id = "${var.group_create ? element(concat(oci_identity_group.this.*.id, list("")), 0) : lookup(local.group_ids[0], "id")}"
}
Expand Down

0 comments on commit 688c231

Please # to comment.