From c9ca2608e6ec9f9444ec08d06094c4ec3ea0bcce Mon Sep 17 00:00:00 2001 From: Caleb Brose <5447118+cmbrose@users.noreply.github.com> Date: Fri, 22 Jul 2022 11:07:57 -0500 Subject: [PATCH] Invert check --- pkg/cmd/codespace/ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/codespace/ssh.go b/pkg/cmd/codespace/ssh.go index e68aa7fda..93263dc1f 100644 --- a/pkg/cmd/codespace/ssh.go +++ b/pkg/cmd/codespace/ssh.go @@ -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) {