Skip to content

Commit 6b0e29c

Browse files
authored
Update add-artifact-vm.md
In samples script, changed $name = $_.TrimStart('^-param_') to $name = $_ -replace '^-param_' ------- cc: @varshagangu9
1 parent fa121a0 commit 6b0e29c

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)