seal-io / walrus

Walrus is an open-source application management platform based on IaC tools including OpenTofu, Terraform and others. It helps platform engineers build golden paths for developers and empowers developers with self-service capabilities.
Apache License 2.0
427 stars 48 forks source link

When a boolean variable is set a default value, setting its value to false will result in deployment failures #1987

Closed Finenyaco closed 9 months ago

Finenyaco commented 9 months ago

Describe the bug

When a boolean variable is not assigned a default value, setting its value to false will result in deployment failures.

Steps to reproduce

  1. Add a template with source https://github.com/unitong/test-upgrade.
  2. Create a resource using template 'test-upgrade@v0.0.2' . Set the value of 'Test Bool' to false.
image
  1. Check the deployment result.

Result

  1. Failed to deploy.

    image
  2. The value is null.

    image

Expected behavior

Environment

Additional context Add any other context about the problem here.

Finenyaco commented 9 months ago

Environment

Test Result: pass