Merge branch 'cmbrose/no-ssh-api-call' of https://github.com/cli/cli into cmbrose/no-ssh-api-call
This commit is contained in:
commit
deedd35a2c
1 changed files with 2 additions and 2 deletions
|
|
@ -277,7 +277,7 @@ func selectSSHKeys(
|
|||
|
||||
configKeyPair, err := firstConfiguredKeyPair(ctx, customConfigPath, opts.profile)
|
||||
if err != nil {
|
||||
return nil, false, fmt.Errorf("checking configured keys: %v", err)
|
||||
return nil, false, fmt.Errorf("checking configured keys: %w", err)
|
||||
}
|
||||
|
||||
// Even if there was no error, there may simply be no configured keys, so still check for nil here
|
||||
|
|
@ -288,7 +288,7 @@ func selectSSHKeys(
|
|||
// Finally, fall back to generating new automatic keys
|
||||
autoKeyPair, err := generateAutomaticSSHKeys(sshContext)
|
||||
if err != nil {
|
||||
return nil, false, fmt.Errorf("generating automatic keypair: %v", err)
|
||||
return nil, false, fmt.Errorf("generating automatic keypair: %w", err)
|
||||
}
|
||||
|
||||
return autoKeyPair, true, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue