From 98ead46d1a9ee6b5c7e855c7561e07dab23b70f3 Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Fri, 26 Jul 2019 15:56:07 -0700 Subject: [PATCH] Call Update of snapshotter plugin Signed-off-by: Maksym Pavlenko --- metadata/snapshot.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/metadata/snapshot.go b/metadata/snapshot.go index 6b12c1522..23976636f 100644 --- a/metadata/snapshot.go +++ b/metadata/snapshot.go @@ -213,6 +213,15 @@ func (s *snapshotter) Update(ctx context.Context, info snapshots.Info, fieldpath bkey = string(sbkt.Get(bucketKeyName)) local.Parent = string(sbkt.Get(bucketKeyParent)) + inner := snapshots.Info{ + Name: bkey, + Labels: filterInheritedLabels(local.Labels), + } + + if _, err := s.Snapshotter.Update(ctx, inner, fieldpaths...); err != nil { + return err + } + return nil }); err != nil { return snapshots.Info{}, err