Skip to content

Commit

Permalink
env var bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredfholgate committed Aug 1, 2024
1 parent cabca57 commit 6e92b7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions locals.container.instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ locals {
}

locals {
container_instance_environment_variables_map = { for env in local.container_instance_environment_variables : env.name => env.value }
container_instance_sensitive_environment_variables_map = { for env in local.container_instance_sensitive_environment_variables : env.name => env.value }
container_instance_environment_variables_map = { for env in local.container_instance_environment_variables : env.name => env.value if env.value != null && env.value != "" }
container_instance_sensitive_environment_variables_map = { for env in local.container_instance_sensitive_environment_variables : env.name => env.value if env.value != null && env.value != "" }
}
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ locals {
log_analytics_workspace_name = var.log_analytics_workspace_name != null ? var.log_analytics_workspace_name : "laws-${var.postfix}"
user_assigned_managed_identity_id = var.user_assigned_managed_identity_id != null ? var.user_assigned_managed_identity_id : module.user_assigned_managed_identity[0].resource_id
user_assigned_managed_identity_name = var.user_assigned_managed_identity_name != null ? var.user_assigned_managed_identity_name : "uami-${var.postfix}"
version_control_system_agent_name_prefix = var.version_control_system_agent_name_prefix != null ? var.version_control_system_agent_name_prefix : var.version_control_system_type == local.version_control_system_azure_devops ? "agent-${var.postfix}" : "runner-${var.postfix}"
version_control_system_agent_name_prefix = var.version_control_system_agent_name_prefix != null ? var.version_control_system_agent_name_prefix : (var.version_control_system_type == local.version_control_system_azure_devops ? "agent-${var.postfix}" : "runner-${var.postfix}")
virtual_network_name = var.virtual_network_name != null ? var.virtual_network_name : "vnet-${var.postfix}"
public_ip_name = var.public_ip_name != null ? var.public_ip_name : "pip-${var.postfix}"
nat_gateway_name = var.nat_gateway_name != null ? var.nat_gateway_name : "natgw-${var.postfix}"
Expand Down

0 comments on commit 6e92b7f

Please sign in to comment.