Skip to content

Commit 2c8ef06

Browse files
committed
fix: use null for unset REPORT_SAS
1 parent 0b64945 commit 2c8ef06

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

m365/image/run_container.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Foreach ($tenantConfig in $(Get-ChildItem 'input\')) {
9191

9292
Write-Output " Starting Upload"
9393
$OutPath = "$($Env:REPORT_OUTPUT)/$($ResultsFile.Name)"
94-
if ($null -ne $Env:REPORT_SAS -and $Env:REPORT_SAS -ne "") {
94+
if ($null -ne $Env:REPORT_SAS) {
9595
$OutPath += "?$($Env:REPORT_SAS)"
9696
}
9797
.\azcopy copy $ResultsFile.FullName $OutPath --output-level essential

m365/terraform/modules/container/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ resource "azurerm_container_group" "aci" {
8585
"SECONDARY_APP_TLD" = var.secondary_app_info == null ? null : (var.secondary_app_info.environment_to_use == "commercial" ? "com" : "us")
8686
}
8787
secure_environment_variables = {
88-
"REPORT_SAS" = var.output_storage_container_sas != null ? var.output_storage_container_sas : ""
88+
"REPORT_SAS" = var.output_storage_container_sas
8989
}
9090
dynamic "ports" {
9191
for_each = var.subnet_ids == null ? [] : [1]

0 commit comments

Comments
 (0)