From cbf4452fe91334fa881b9811b66b034da9f53020 Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Sat, 6 Jun 2020 10:03:37 -0700 Subject: [PATCH] fix snapshot --- pkg/snapshot/snapshot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/snapshot/snapshot.go b/pkg/snapshot/snapshot.go index 47a798428..2a84c50da 100644 --- a/pkg/snapshot/snapshot.go +++ b/pkg/snapshot/snapshot.go @@ -152,7 +152,6 @@ func (s *Snapshotter) scanFullFilesystem() ([]string, []string, error) { } else if ok { foundPaths = append(foundPaths, path) } - return nil }, Unsorted: true, @@ -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.