Merge pull request #368 from AkihiroSuda/follow-up-366

exporter/containerimage: fix handling empty option values
docker-18.09
Tõnis Tiigi 2018-05-08 10:15:52 -07:00 committed by GitHub
commit 8dcebc1dd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@ func (e *imageExporter) Resolve(ctx context.Context, opt map[string]string) (exp
case keyPush:
if v == "" {
i.push = true
continue
}
b, err := strconv.ParseBool(v)
if err != nil {
@ -59,6 +60,7 @@ func (e *imageExporter) Resolve(ctx context.Context, opt map[string]string) (exp
case keyInsecure:
if v == "" {
i.insecure = true
continue
}
b, err := strconv.ParseBool(v)
if err != nil {