Skip to content

Commit cddee22

Browse files
azure-sdkckairen
andauthored
Sync eng/common directory with azure-sdk-tools for PR 2053 (Azure#25101)
* Changing inline bash for stress test resource deployment * PR-mod * pr-mod * pr-mod * pr-mod Co-authored-by: Albert Cheng <[email protected]>
1 parent e999bf7 commit cddee22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eng/common/TestResources/New-TestResources.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ try {
334334
$serviceName = if (Split-Path $ServiceDirectory) {
335335
Split-Path -Leaf $ServiceDirectory
336336
} else {
337-
$ServiceDirectory
337+
$ServiceDirectory.Trim('/')
338338
}
339339

340340
$ResourceGroupName = if ($ResourceGroupName) {
@@ -600,7 +600,7 @@ try {
600600
$outputFile = "$($templateFile.originalFilePath).env"
601601

602602
$environmentText = $deploymentOutputs | ConvertTo-Json;
603-
$bytes = ([System.Text.Encoding]::UTF8).GetBytes($environmentText)
603+
$bytes = [System.Text.Encoding]::UTF8.GetBytes($environmentText)
604604
$protectedBytes = [Security.Cryptography.ProtectedData]::Protect($bytes, $null, [Security.Cryptography.DataProtectionScope]::CurrentUser)
605605

606606
Set-Content $outputFile -Value $protectedBytes -AsByteStream -Force

0 commit comments

Comments
 (0)