File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
recipes/newrelic/infrastructure/ohi/sql Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -265,12 +265,12 @@ install:
265
265
if (Test-Path $NriSqlFile) { Remove-Item $NriSqlFile }
266
266
Add-Content -Path $NriSqlFile -Value $SQL -Force 2>&1
267
267
# Try with env if passed in
268
- if ($NR_SQL_USERNAME -and $NR_SQL_PASSWORD ) {
268
+ if ($NEW_RELIC_MSSQL_SQL_USERNAME -and $NEW_RELIC_MSSQL_SQL_PASSWORD ) {
269
269
Write-Host "sqlcmd with credentials"
270
- $SqlOutput=(sqlcmd -U $NR_SQL_USERNAME -P $NR_SQL_PASSWORD -S $connection -i $NriSqlFile 2>&1)
270
+ $SqlOutput=(sqlcmd -U $NEW_RELIC_MSSQL_SQL_USERNAME -P $NEW_RELIC_MSSQL_SQL_PASSWORD -S $connection -i $NriSqlFile 2>&1)
271
271
}
272
272
# Env failed or blank, try with default
273
- if ([string]::IsNullOrWhiteSpace($NR_SQL_USERNAME ) -or ($SqlOutput.Length -lt 3)){
273
+ if ([string]::IsNullOrWhiteSpace($NEW_RELIC_MSSQL_SQL_USERNAME ) -or ($SqlOutput.Length -lt 3)){
274
274
Write-Host "sqlcmd with no credentials"
275
275
$SqlOutput=(sqlcmd -S $connection -i $NriSqlFile 2>&1)
276
276
}
You can’t perform that action at this time.
0 commit comments