diff --git a/libpod/container_commit.go b/libpod/container_commit.go index 832b1499a1..642556995e 100644 --- a/libpod/container_commit.go +++ b/libpod/container_commit.go @@ -72,10 +72,10 @@ func (c *Container) Commit(ctx context.Context, destImage string, options Contai OverrideConfig: options.CommitOptions.OverrideConfig, } importBuilder, err := buildah.ImportBuilder(ctx, c.runtime.store, builderOptions) - importBuilder.Format = options.PreferredManifestType if err != nil { return nil, err } + importBuilder.Format = options.PreferredManifestType if options.Author != "" { importBuilder.SetMaintainer(options.Author) }