Skip to content

Confusing error message: "Bitwise operators are not supported. Did you mean boolean OR ("&&")?" #25326

@gdubya

Description

@gdubya

Terraform Version

Terraform v0.12.26

Expected Behavior

Expected the correct boolean operator in the error message ("AND" instead of "OR")

Error: Unsupported operator

  on myapp-web.tf line 10, in resource "kubernetes_deployment" "myapp-web":
  10:     replicas = |

Bitwise operators are not supported. Did you mean boolean AND ("&&")?

Actual Behavior

Error: Unsupported operator

  on myapp-web.tf line 10, in resource "kubernetes_deployment" "myapp-web":
  10:     replicas = |

Bitwise operators are not supported. Did you mean boolean OR ("&&")?

Steps to Reproduce

Using kubernetes provider to declare a new deployment. Accidentally typed pipe char ("|") instead of "1" for number of replicas.

Metadata

Metadata

Assignees

Labels

bugconfigexplaineda Terraform Core team member has described the root cause of this issue in code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions