Skip to content

Commit c8bbceb

Browse files
committed
metadata: merge snapshot labels with metadata's labels
fix the no-op issue. Signed-off-by: Wei Fu <fuweid89@gmail.com> (cherry picked from commit 4b3e0a8) Signed-off-by: Wei Fu <fuweid89@gmail.com>
1 parent 18100a3 commit c8bbceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metadata/snapshot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func overlayInfo(info, overlay snapshots.Info) snapshots.Info {
232232
info.Labels = overlay.Labels
233233
} else {
234234
for k, v := range overlay.Labels {
235-
overlay.Labels[k] = v
235+
info.Labels[k] = v
236236
}
237237
}
238238
return info

0 commit comments

Comments
 (0)