Skip to content

Commit d6cd8ac

Browse files
Merge pull request #224175 from RoseHJM/patch-10
Update add-artifact-vm.md
2 parents 3a1fc56 + 6b0e29c commit d6cd8ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/devtest-labs/add-artifact-vm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ $artifactParameters = @()
123123
# Fill the artifact parameter with the additional -param_ data and strip off the -param_
124124
$Params | ForEach-Object {
125125
if ($_ -match '^-param_(.*)') {
126-
$name = $_.TrimStart('^-param_')
126+
$name = $_ -replace '^-param_'
127127
} elseif ( $name ) {
128128
$artifactParameters += @{ "name" = "$name"; "value" = "$_" }
129129
$name = $null #reset name variable

0 commit comments

Comments
 (0)