prevent nil pointer dereference by defining IsUserAuthority. This occurred as a regression when we updated the crypto library in v1.4.0
This commit is contained in:
parent
0a74a6ae10
commit
6dcff18d36
|
@ -241,6 +241,7 @@ func (p *Provisioner) Provision(ctx context.Context, ui packer.Ui, comm packer.C
|
|||
|
||||
return nil, nil
|
||||
},
|
||||
IsUserAuthority: func(k ssh.PublicKey) bool { return true },
|
||||
}
|
||||
|
||||
config := &ssh.ServerConfig{
|
||||
|
|
|
@ -234,6 +234,7 @@ func (p *Provisioner) Provision(ctx context.Context, ui packer.Ui, comm packer.C
|
|||
|
||||
return nil, nil
|
||||
},
|
||||
IsUserAuthority: func(k ssh.PublicKey) bool { return true },
|
||||
}
|
||||
|
||||
config := &ssh.ServerConfig{
|
||||
|
|
Loading…
Reference in New Issue