You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to create the create_bastion_jumpbox form field to support toggling the creation of Bastion and Windows VM Jumpboxes on a deployment, I'm unable to override the default value of true, the browser always renders an unchecked checkbox, and the checkbox state seems to have no effect on the variable value as the bastion host and jumpbox are always deployed.
Steps to Reproduce
Add a boolean that defaults to true to the UI in *.front.json
Deploy the UI
Deploy the configuration
Expected behavior
The checkbox state toggles the corresponding terraform variable true/false
Actual behavior
The checkbox state is irrelevant and the corresponding terraform variable value is always true.
Snippets
If I set up a saca-hub.front.json like this:
{
"varname": "create_bastion_jumpbox",
"type": "boolean",
"default_val": true,
"description": "Create a bastion host and jumpbox VM?",
"options": []
},
and saca-hub.orig.tfvars.json like this:
"create_bastion_jumpbox": false,
and the saca-hub/variables.tf like this:
variable "create_bastion_jumpbox" {
description = "Create a bastion host and jumpbox VM?"
type = bool
default = true
}
the UI will render this:
and no matter if I toggle that checkbox or not, the resources always treat the variable as if it is truthy:
cd exec_output && cat exec.txt
...
module.bastion-host[0].azurerm_subnet.bastion_host_subnet: Creating...
...
The text was updated successfully, but these errors were encountered:
Description
When trying to create the
create_bastion_jumpbox
form field to support toggling the creation of Bastion and Windows VM Jumpboxes on a deployment, I'm unable to override the default value oftrue
, the browser always renders an unchecked checkbox, and the checkbox state seems to have no effect on the variable value as the bastion host and jumpbox are always deployed.Steps to Reproduce
true
to the UI in*.front.json
Expected behavior
The checkbox state toggles the corresponding terraform variable true/false
Actual behavior
The checkbox state is irrelevant and the corresponding terraform variable value is always true.
Snippets
If I set up a saca-hub.front.json like this:
and saca-hub.orig.tfvars.json like this:
and the saca-hub/variables.tf like this:
the UI will render this:
and no matter if I toggle that checkbox or not, the resources always treat the variable as if it is truthy:
The text was updated successfully, but these errors were encountered: