diff --git a/modules/file_manipulation/locals.bicep.tf b/modules/file_manipulation/locals.bicep.tf index b4151a1e..7ebaaf38 100644 --- a/modules/file_manipulation/locals.bicep.tf +++ b/modules/file_manipulation/locals.bicep.tf @@ -53,7 +53,7 @@ locals { subscriptionIdVariable = try(format(local.id_variable_template, script_file.subscriptionId), local.id_variable_template_empty) resourceGroupNameVariable = try(format(local.id_variable_template, script_file.resourceGroupName), local.id_variable_template_empty) deploymentType = script_file.deploymentType - firstRunWhatIf = var.iac_type == "local" ? format("$%s",script_file.firstRunWhatIf) : script_file.firstRunWhatIf + firstRunWhatIf = local.is_local ? format("$%s", script_file.firstRunWhatIf) : script_file.firstRunWhatIf group = script_file.group networkType = try(script_file.networkType, "") } if try(script_file.networkType, "") == "" || try(script_file.networkType, "") == local.networking_type } : {} diff --git a/modules/file_manipulation/locals.files.tf b/modules/file_manipulation/locals.files.tf index 201058d3..2423600f 100644 --- a/modules/file_manipulation/locals.files.tf +++ b/modules/file_manipulation/locals.files.tf @@ -1,6 +1,7 @@ locals { is_github = var.vcs_type == "github" is_azuredevops = var.vcs_type == "azuredevops" + is_local = var.vcs_type == "local" use_separate_repository_for_templates = coalesce(var.use_separate_repository_for_templates, false) 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, "")