Invert check

This commit is contained in:
Caleb Brose 2022-07-22 11:07:57 -05:00
parent 414a74b5f5
commit c9ca2608e6

View file

@ -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) {