Skip to content

Commit a9704d2

Browse files
Cameron CowenCameron Cowen
Cameron Cowen
authored and
Cameron Cowen
committed
Fixed validation set
1 parent 49240f7 commit a9704d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShell.BTDF/PowerShell.BTDF.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function Clean-BTDFEnvironment
125125
$attributeCollection = [System.Collections.ObjectModel.Collection[System.Attribute]]::new()
126126
$parameter = [System.Management.Automation.ParameterAttribute]::new()
127127
$attributeCollection.Add($parameter)
128-
$validateSet = [System.Management.Automation.ValidateSetAttribute]::new(($btsApps | Select-Object -ExpandProperty Name))
128+
$validateSet = [System.Management.Automation.ValidateSetAttribute]::new([string[]]($btsApps | Select-Object -ExpandProperty Name))
129129
$attributeCollection.Add($validateSet)
130130
$exemptionsParameter = [System.Management.Automation.RuntimeDefinedParameter]::new("Exemptions", [System.Collections.Generic.List[string]], $attributeCollection)
131131
$exemptionsParameter.Value = @()

0 commit comments

Comments
 (0)