Skip to content

Commit

Permalink
fix children order for lister
Browse files Browse the repository at this point in the history
  • Loading branch information
mandelsoft committed Jul 14, 2023
1 parent 7ffe94c commit 1f52cf1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/contexts/oci/cpi/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ func FilterChildren(closure bool, prefix string, list []string) []string {
}
}
result := make([]string, 0, len(set))
for n := range set {
result = append(result, n)
for _, n := range list {
if set[n] {
result = append(result, n)
}
}
return result
}

0 comments on commit 1f52cf1

Please sign in to comment.