Skip to content

Commit a55a8e8

Browse files
committed
Fixing config enumeration outside of the module scope
1 parent a409c10 commit a55a8e8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bin/deploy.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $config = Get-DBOConfig -Path "$PSScriptRoot\dbops.config.json" -Configuration $
4242
#Merge custom parameters into a configuration
4343
$newConfig = @{}
4444
foreach ($key in ($PSBoundParameters.Keys)) {
45-
if ($key -in [DBOpsConfig]::EnumProperties()) {
45+
if ($key -in [DBOps.ConfigProperty].GetEnumNames()) {
4646
$newConfig.$key = $PSBoundParameters[$key]
4747
}
4848
}
@@ -62,8 +62,7 @@ foreach ($key in ($PSBoundParameters.Keys)) {
6262

6363
if ($PSCmdlet.ShouldProcess($params.PackageFile, "Initiating the deployment of the package")) {
6464
Invoke-DBODeployment @params
65-
}
66-
else {
65+
} else {
6766
Invoke-DBODeployment @params -WhatIf
6867
}
6968

0 commit comments

Comments
 (0)