Invert check
This commit is contained in:
parent
414a74b5f5
commit
c9ca2608e6
1 changed files with 1 additions and 1 deletions
|
|
@ -244,7 +244,7 @@ func shouldUseAutomaticSSHKeys(
|
|||
|
||||
// If there is a public key uploaded which matches a configured
|
||||
// private key, there is no need for automatic key generation
|
||||
return hasUploadedPublicKeyForConfig(ctx, sshContext, apiClient, customConfigPath, opts.profile)
|
||||
return !hasUploadedPublicKeyForConfig(ctx, sshContext, apiClient, customConfigPath, opts.profile)
|
||||
}
|
||||
|
||||
func setupAutomaticSSHKeys(sshContext ssh.Context) (*ssh.KeyPair, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue