Skip to content

Commit

Permalink
Merge pull request #432 from niphlod/fix/DynamicParams
Browse files Browse the repository at this point in the history
fix -Databases parameter to be filled with unique values
  • Loading branch information
Chrissy LeMaire authored Dec 16, 2016
2 parents 2ebce95 + eb391a7 commit 2a48e4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/DynamicParams.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ filled with snapshot list from specified SQL Server server.
$databaselist += $database.DatabaseSnapshotBaseName
}
}

$databaselist = $databaselist | Get-Unique

# Reusable parameter setup
$newparams = New-Object System.Management.Automation.RuntimeDefinedParameterDictionary
Expand Down

0 comments on commit 2a48e4d

Please sign in to comment.