Get-DbcConfig provide multiple values for -Name
MikeyBronowski opened this issue · 0 comments
MikeyBronowski commented
Bug Report
General Troubleshooting steps
- Verified running the latest release of dbachecks?
Does (Find-Module dbachecks).Version match (Get-Module dbachecks).Version.ToString()
- Verified errors are not related to permissions?
- Can duplicate in new/clean PowerShell session (clean =
powershell -NoProfile
)?
Version Information
- Operating System (Name|Version):
- PowerShell Version:
- SQL Server (Edition|Version):
Steps to Reproduce
<--
PLEASE include as much information as possible if this is a bug report.
The more you include the faster we can identify the problem and get it fixed
-->
- Attach any screenshots (if possible/allowed)
- Attach output from PowerShell console (if possible/allowed)
When trying to pass more than one Name the function fails.
Get-DbcConfig -Name 'skip.tempdb1118','skip.tempdbfilecount'
Get-DbcConfig : Cannot process argument transformation on parameter 'Name'. Cannot convert value to type System.String.
At line:1 char:21
+ Get-DbcConfig -Name 'skip.tempdb1118','skip.tempdbfilecount'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Get-DbcConfig], ParameterBindingArgumentTransformationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-DbcConfig
Description of Bug
Expected behaviour:
Get-DbcConfig -Name 'skip.tempdb1118','skip.tempdbfilecount'
returns details about both checks
Name Value Description
---- ----- -----------
skip.tempdb1118 False Don't run test for Trace Flag 1118
skip.tempdbfilecount False Don't run test for Temp Database File Count
Actual behaviour:
Errors out
<--
PLEASE include as much information as possible if this is a bug
Explain what it does that you would like it not to do
or
What it doesnt do that you would like it to do :-)
-->