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

Incorrect parsing of modulo operator #16

@apparentlymart

Description

@apparentlymart

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions