mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-10 17:20:26 -04:00
on error return empty defaultKeyPair{} rather than nil
This commit is contained in:
parent
484aa4768f
commit
be01ca70f4
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ func (o *defaultKeyPairBuilder) Build() (KeyPair, error) {
|
|||
return o.newEcdsaKeyPair()
|
||||
}
|
||||
|
||||
return nil, fmt.Errorf("Unsupported keypair type: %s", o.kind.String())
|
||||
return defaultKeyPair{}, fmt.Errorf("Unsupported keypair type: %s", o.kind.String())
|
||||
}
|
||||
|
||||
// preallocatedKeyPair returns an SSH key pair based on user
|
||||
|
|
|
|||
Loading…
Reference in a new issue