mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
Merge pull request #7738 from hashicorp/fix_7727
prevent nil pointer dereference by defining IsUserAuthority. This occ…
This commit is contained in:
commit
ccd4397f26
2 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue