Merge pull request #368 from AkihiroSuda/follow-up-366
exporter/containerimage: fix handling empty option valuesdocker-18.09
commit
8dcebc1dd2
|
@ -50,6 +50,7 @@ func (e *imageExporter) Resolve(ctx context.Context, opt map[string]string) (exp
|
||||||
case keyPush:
|
case keyPush:
|
||||||
if v == "" {
|
if v == "" {
|
||||||
i.push = true
|
i.push = true
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
b, err := strconv.ParseBool(v)
|
b, err := strconv.ParseBool(v)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -59,6 +60,7 @@ func (e *imageExporter) Resolve(ctx context.Context, opt map[string]string) (exp
|
||||||
case keyInsecure:
|
case keyInsecure:
|
||||||
if v == "" {
|
if v == "" {
|
||||||
i.insecure = true
|
i.insecure = true
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
b, err := strconv.ParseBool(v)
|
b, err := strconv.ParseBool(v)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue