-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Fn.cidr should return a List. Currently returns a String in Java #2671
Fn.cidr should return a List. Currently returns a String in Java #2671
Comments
Fn.select(4, new Token(() => Fn.cidr(pVpcCidr.getRef(), 16, '8')).toList()); EDIT: use a lazy token |
Tried: Fn.select(4, new Token(Fn.cidr(this.pVpcCidr.getRef(), 16, "8")).toList()) and received: [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project xxxxxx: An exception occured while executing the Java class. Got a literal Token value; only intrinsics can ever evaluate to lists. |
Sorry, you will need to use a lazy token: |
CloudFormation's Fn::CIDR returns a list of CIDR blocks and not a string. So we need to use a listified token instead of a string. Fixes #2671
CloudFormation's Fn::CIDR returns a list of CIDR blocks and not a string. So we need to use a listified token instead of a string. Fixes #2671
Am expecting the following code:
to evalute to:
However, this fails to compile since Fn.select expects a list and Fn.cidr returns a string
The text was updated successfully, but these errors were encountered: