Skip to content
This repository has been archived by the owner on Oct 3, 2019. It is now read-only.

Incorrect parsing of modulo operator #16

Closed
apparentlymart opened this issue Mar 3, 2018 · 1 comment
Closed

Incorrect parsing of modulo operator #16

apparentlymart opened this issue Mar 3, 2018 · 1 comment
Labels

Comments

@apparentlymart
Copy link
Member

In an expression in the alibaba/ecs-instance/alicloud Terraform Registry module there is a modulo operator that is not parsing correctly:

Error: Missing argument separator

  on .terraform/init-from-module/root/alibaba-terraform-alicloud-ecs-instance-063c382/main.tf line 79:
  79:   instance_id = "${element(alicloud_instance.instances.*.id, count.index%var.number_of_instances)}"

A comma is required to separate each function argument from the next.

It seems like % is not being recognized as an operator here and instead the parser thinks it has found the end of the expression.

@apparentlymart
Copy link
Member Author

This is fixed in 440debc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant