Skip to content

Commit cc45fbf

Browse files
committed
validating new database types properly
1 parent b8644b1 commit cc45fbf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

dbops.psm1

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,7 @@ Register-PSFConfigValidation -Name "connectionType" -ScriptBlock {
9393
Param (
9494
$Value
9595
)
96-
$allowedTypes = @(
97-
SQLServer
98-
Oracle
99-
)
96+
$allowedTypes = [DBOps.ConnectionType].GetEnumNames()
10097
$failMessage = "Only the following values are allowed: $($allowedTypes -join ', ')"
10198
$Result = New-Object PSObject -Property @{
10299
Success = $True

0 commit comments

Comments
 (0)