Fix expected same ordering
It is not guaranteened that integrations list will be in the same order after updating
This commit is contained in:
parent
62b17769e9
commit
8ebbbe6035
1 changed files with 4 additions and 3 deletions
|
@ -189,9 +189,10 @@ function main {
|
||||||
[System.Collections.ArrayList]$savedExclusions = New-Object System.Collections.ArrayList
|
[System.Collections.ArrayList]$savedExclusions = New-Object System.Collections.ArrayList
|
||||||
$savedExclusionsNames = $config.excluded
|
$savedExclusionsNames = $config.excluded
|
||||||
foreach ($i in $integrationsList) {
|
foreach ($i in $integrationsList) {
|
||||||
if (($null -ne $savedExclusionsNames[0]) -and $i.StartsWith($savedExclusionsNames[0])) {
|
$integrationID = $i.Split(':')[0]
|
||||||
[void] $savedExclusions.Add($true)
|
if (($savedExclusionsNames.Count -gt 1) -and $savedExclusionsNames.Contains($integrationID)) {
|
||||||
$savedExclusionsNames.RemoveAt(0)
|
$savedExclusions.Add($true)
|
||||||
|
$savedExclusionsNames.Remove($integrationID)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
[void] $savedExclusions.Add($false)
|
[void] $savedExclusions.Add($false)
|
||||||
|
|
Reference in a new issue