fix dependency test for conection types without deps

This commit is contained in:
OCram85 2019-03-15 07:57:58 +01:00
parent 397cc5be70
commit b50c3b5840

View File

@ -70,6 +70,11 @@ function Resolve-Dependency {
process {
$SelectedDependency = $Dependency.Optional | Where-Object {$_.Name -match $Name}
# return true if there is no dependency defined
if ($null -eq $SelectedDependency) {
return $true
}
$res = @()
foreach ($Module in $SelectedDependency.Modules) {
$res += Test-Module -Name $Module