Skip to content

Commit

Permalink
Add catch-all parameter to test resources script (#2721)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbp authored Feb 9, 2022
1 parent f6d2e43 commit 103da17
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion eng/common/TestResources/New-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,14 @@ param (
[switch] $OutFile,

[Parameter()]
[switch] $SuppressVsoCommands = ($null -eq $env:SYSTEM_TEAMPROJECTID)
[switch] $SuppressVsoCommands = ($null -eq $env:SYSTEM_TEAMPROJECTID),

# Captures any arguments not declared here (no parameter errors)
# This enables backwards compatibility with old script versions in
# hotfix branches if and when the dynamic subscription configuration
# secrets get updated to add new parameters.
[Parameter(ValueFromRemainingArguments = $true)]
$NewTestResourcesRemainingArguments
)

. $PSScriptRoot/SubConfig-Helpers.ps1
Expand Down

0 comments on commit 103da17

Please sign in to comment.