exporters: allow for more than one non-standard metadata key

I think this was just a thinko.

Signed-off-by: Ian Campbell <ijc@docker.com>
docker-18.09
Ian Campbell 2018-08-06 10:23:46 +01:00
parent 7e98ece83d
commit 075c54589c
2 changed files with 2 additions and 2 deletions

View File

@ -78,8 +78,8 @@ func (e *imageExporter) Resolve(ctx context.Context, opt map[string]string) (exp
default: default:
if i.meta == nil { if i.meta == nil {
i.meta = make(map[string][]byte) i.meta = make(map[string][]byte)
i.meta[k] = []byte(v)
} }
i.meta[k] = []byte(v)
} }
} }
return i, nil return i, nil

View File

@ -80,8 +80,8 @@ func (e *imageExporter) Resolve(ctx context.Context, opt map[string]string) (exp
default: default:
if i.meta == nil { if i.meta == nil {
i.meta = make(map[string][]byte) i.meta = make(map[string][]byte)
i.meta[k] = []byte(v)
} }
i.meta[k] = []byte(v)
} }
} }
if ot == nil { if ot == nil {