fix: Add plurality to approved storage providers parameter for 8.1.1

This commit is contained in:
DrIOS
2024-06-30 10:17:10 -05:00
parent fc9ff57576
commit 20124cdbb5
3 changed files with 12 additions and 12 deletions

View File

@@ -6,7 +6,7 @@ function Invoke-TestFunction {
[Parameter(Mandatory = $false)]
[string]$DomainName,
[Parameter(Mandatory = $false)]
[string[]]$ApprovedCloudStorageProvider
[string[]]$ApprovedCloudStorageProviders
)
$functionName = $FunctionFile.BaseName
@@ -17,8 +17,8 @@ function Invoke-TestFunction {
if ('DomainName' -in $functionCmd.Parameters.Keys) {
$paramList.DomainName = $DomainName
}
if ('ApprovedCloudStorageProvider' -in $functionCmd.Parameters.Keys) {
$paramList.ApprovedCloudStorageProvider = $ApprovedCloudStorageProvider
if ('ApprovedCloudStorageProviders' -in $functionCmd.Parameters.Keys) {
$paramList.ApprovedCloudStorageProviders = $ApprovedCloudStorageProviders
}
# Use splatting to pass parameters
Write-Verbose "Running $functionName..."