Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zdarovich committed Dec 11, 2023
1 parent cc9fd64 commit 2cb3b33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imagescan/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func (s *Controller) findBestNodeAndMode(img *image) (string, string, error) {
nodeNames = lo.Keys(s.delta.nodes)
}

// skipping Windows nodes as they are not supported as for today
// skipping non-linux nodes as they are not supported as for today
nodeNames = s.filterWindowsNodes(nodeNames)

// Resolve best node.
Expand Down Expand Up @@ -303,8 +303,8 @@ func (s *Controller) findBestNodeAndMode(img *image) (string, string, error) {
func (s *Controller) filterWindowsNodes(names []string) []string {
var filtered []string
for _, name := range names {
if s.delta.nodes[name].os == "windows" {
s.log.Debugf("skipping windows node %s", name)
if s.delta.nodes[name].os != "linux" {
s.log.Debugf("skipping non-linux node %s", name)
continue
}
filtered = append(filtered, name)
Expand Down

0 comments on commit 2cb3b33

Please sign in to comment.