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
parent
7e98ece83d
commit
075c54589c
|
@ -78,8 +78,8 @@ func (e *imageExporter) Resolve(ctx context.Context, opt map[string]string) (exp
|
|||
default:
|
||||
if i.meta == nil {
|
||||
i.meta = make(map[string][]byte)
|
||||
i.meta[k] = []byte(v)
|
||||
}
|
||||
i.meta[k] = []byte(v)
|
||||
}
|
||||
}
|
||||
return i, nil
|
||||
|
|
|
@ -80,8 +80,8 @@ func (e *imageExporter) Resolve(ctx context.Context, opt map[string]string) (exp
|
|||
default:
|
||||
if i.meta == nil {
|
||||
i.meta = make(map[string][]byte)
|
||||
i.meta[k] = []byte(v)
|
||||
}
|
||||
i.meta[k] = []byte(v)
|
||||
}
|
||||
}
|
||||
if ot == nil {
|
||||
|
|
Loading…
Reference in New Issue