Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roll back to user count condition. #5

Merged
merged 1 commit into from
Oct 25, 2018
Merged

Roll back to user count condition. #5

merged 1 commit into from
Oct 25, 2018

Conversation

yimw
Copy link
Contributor

@yimw yimw commented Oct 25, 2018

Due to terraform issue:
hashicorp/terraform#12570
value of count cannot be computed, which means if there is any compute or any terraform build-in condition in count condition, it will be ignored and continue executing.

So if condition as this:
count = "${var.group_create || length(lookup(local.group_ids[0], "id")) > 0 ? var.user_count : 0}"
even length is 0, it will continue execute user_id = "${var.user_ids[count.index]}" then cause count.index error.

@yimw yimw requested a review from briangustafson October 25, 2018 21:32
@yimw yimw merged commit 688c231 into master Oct 25, 2018
@yimw yimw deleted the dev branch October 29, 2018 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants