Skip to content

Commit ac9ad7b

Browse files
fix: bool logic (#129)
* fix: bool logic * fmt
1 parent 5a61cbb commit ac9ad7b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

modules/file_manipulation/locals.bicep.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ locals {
5353
subscriptionIdVariable = try(format(local.id_variable_template, script_file.subscriptionId), local.id_variable_template_empty)
5454
resourceGroupNameVariable = try(format(local.id_variable_template, script_file.resourceGroupName), local.id_variable_template_empty)
5555
deploymentType = script_file.deploymentType
56-
firstRunWhatIf = var.iac_type == "local" ? format("$%s",script_file.firstRunWhatIf) : script_file.firstRunWhatIf
56+
firstRunWhatIf = local.is_local ? format("$%s", script_file.firstRunWhatIf) : script_file.firstRunWhatIf
5757
group = script_file.group
5858
networkType = try(script_file.networkType, "")
5959
} if try(script_file.networkType, "") == "" || try(script_file.networkType, "") == local.networking_type } : {}

modules/file_manipulation/locals.files.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
locals {
22
is_github = var.vcs_type == "github"
33
is_azuredevops = var.vcs_type == "azuredevops"
4+
is_local = var.vcs_type == "local"
45
use_separate_repository_for_templates = coalesce(var.use_separate_repository_for_templates, false)
56
repository_name_templates = local.use_separate_repository_for_templates ? var.resource_names.version_control_system_repository_templates : try(var.resource_names.version_control_system_repository, "")
67

0 commit comments

Comments
 (0)