Skip to content

Commit

Permalink
builder-next: reset identitymapping if empty
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <[email protected]>
  • Loading branch information
tonistiigi committed Jul 1, 2019
1 parent e105a74 commit 0bdcc60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builder/builder-next/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ type Builder struct {
func New(opt Opt) (*Builder, error) {
reqHandler := newReqBodyHandler(tracing.DefaultTransport)

if opt.IdentityMapping != nil && opt.IdentityMapping.Empty() {
opt.IdentityMapping = nil
}

c, err := newController(reqHandler, opt)
if err != nil {
return nil, err
Expand Down

0 comments on commit 0bdcc60

Please sign in to comment.