From 1f632f35727f91558049d3b7ee78d9952c8bddb2 Mon Sep 17 00:00:00 2001 From: flouthoc Date: Tue, 17 Aug 2021 20:53:26 +0530 Subject: fix: unifiedOverlays should be assigned if no conflicts found. [NO TESTS NEEDED] Signed-off-by: flouthoc --- pkg/specgen/generate/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/specgen/generate/storage.go') diff --git a/pkg/specgen/generate/storage.go b/pkg/specgen/generate/storage.go index 08836ec31..de655ad7d 100644 --- a/pkg/specgen/generate/storage.go +++ b/pkg/specgen/generate/storage.go @@ -117,7 +117,7 @@ func finalizeMounts(ctx context.Context, s *specgen.SpecGenerator, rt *libpod.Ru return nil, nil, nil, err } cleanDestination := filepath.Clean(v.Destination) - if _, ok := unifiedOverlays[cleanDestination]; ok { + if _, ok := unifiedOverlays[cleanDestination]; !ok { unifiedOverlays[cleanDestination] = v } } -- cgit v1.2.3-54-g00ecf