Skip to content

Commit

Permalink
fix snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal29 committed Jun 6, 2020
1 parent ede69f8 commit cbf4452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/snapshot/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ func (s *Snapshotter) scanFullFilesystem() ([]string, []string, error) {
} else if ok {
foundPaths = append(foundPaths, path)
}

return nil
},
Unsorted: true,
Expand All @@ -173,8 +172,9 @@ func (s *Snapshotter) scanFullFilesystem() ([]string, []string, error) {
delete(existingPaths, path)
if util.CheckIgnoreList(path) {
logrus.Tracef("Not adding %s to layer, as it's whitelisted", path)
filesToAdd = append(filesToAdd, path)
continue
}
filesToAdd = append(filesToAdd, path)
}

// The paths left here are the ones that have been deleted in this layer.
Expand Down

0 comments on commit cbf4452

Please sign in to comment.