Skip to content

Commit

Permalink
Merge pull request #1109 from newrelic/windows_infra_agent_config_utf8
Browse files Browse the repository at this point in the history
infra agent: enforce utf8 encoding on Windows config
  • Loading branch information
noahmmcgivern authored Aug 20, 2024
2 parents aaae88f + 175df47 commit a8289a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions recipes/newrelic/infrastructure/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,24 +207,24 @@ install:
$NEW_RELIC_REGION = "{{.NEW_RELIC_REGION}}"
if ($NEW_RELIC_REGION -ilike "staging") {
Add-Content -Path $InfraConfig -Value "staging: true" -Force
Add-Content -Path $InfraConfig -Value "staging: true" -Force -Encoding utf8
}
Add-Content -Path $InfraConfig -Value "enable_process_metrics: true" -Force
Add-Content -Path $InfraConfig -Value "status_server_enabled: true" -Force
Add-Content -Path $InfraConfig -Value "status_server_port: 18003" -Force
Add-Content -Path $InfraConfig -Value "enable_process_metrics: true" -Force -Encoding utf8
Add-Content -Path $InfraConfig -Value "status_server_enabled: true" -Force -Encoding utf8
Add-Content -Path $InfraConfig -Value "status_server_port: 18003" -Force -Encoding utf8
if (Test-Path env:HTTPS_PROXY) {
(Get-Content $InfraConfig) | Where-Object {
$_ -notmatch "^proxy"
} | Set-Content $InfraConfig
Add-Content -Path $InfraConfig -Value "proxy: $env:HTTPS_PROXY" -Force
Add-Content -Path $InfraConfig -Value "proxy: $env:HTTPS_PROXY" -Force -Encoding utf8
}
$customAttributes=@"
{{.NRIA_CUSTOM_ATTRIBUTES}}
"@
Add-Content -Path $InfraConfig -Value $customAttributes -Force
Add-Content -Path $InfraConfig -Value $customAttributes -Force -Encoding utf8
'
start_infra:
Expand Down

0 comments on commit a8289a1

Please sign in to comment.