Skip to content

Commit 0cc56c6

Browse files
committed
Remove references to auth view
1 parent 9e21ce9 commit 0cc56c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/kotlin/com/coder/gateway/views/steps/CoderWorkspacesStepView.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class CoderWorkspacesStepView : CoderWorkspacesWizardStep, Disposable {
131131
try {
132132
coderClient.initClientSession(wizardModel.coderURL.toURL(), pastedToken)
133133
} catch (e: AuthenticationResponseException) {
134-
CoderAuthStepView.logger.error("Could not authenticate on ${wizardModel.coderURL}. Reason $e")
134+
logger.error("Could not authenticate on ${wizardModel.coderURL}. Reason $e")
135135
return
136136
}
137137
wizardModel.apply {
@@ -153,18 +153,18 @@ class CoderWorkspacesStepView : CoderWorkspacesWizardStep, Disposable {
153153
if (getOS() != OS.WINDOWS) {
154154
pi.fraction = 0.4
155155
val chmodOutput = ProcessExecutor().command("chmod", "+x", cli.toAbsolutePath().toString()).readOutput(true).execute().outputUTF8()
156-
CoderAuthStepView.logger.info("chmod +x ${cli.toAbsolutePath()} $chmodOutput")
156+
logger.info("chmod +x ${cli.toAbsolutePath()} $chmodOutput")
157157
}
158158
pi.apply {
159159
text = "Configuring coder cli..."
160160
fraction = 0.5
161161
}
162162

163163
val loginOutput = ProcessExecutor().command(cli.toAbsolutePath().toString(), "login", wizardModel.coderURL, "--token", wizardModel.token).readOutput(true).execute().outputUTF8()
164-
CoderAuthStepView.logger.info("coder-cli login output: $loginOutput")
164+
logger.info("coder-cli login output: $loginOutput")
165165
pi.fraction = 0.8
166166
val sshConfigOutput = ProcessExecutor().command(cli.toAbsolutePath().toString(), "config-ssh", "--yes", "--use-previous-options").readOutput(true).execute().outputUTF8()
167-
CoderAuthStepView.logger.info("Result of `${cli.toAbsolutePath()} config-ssh --yes --use-previous-options`: $sshConfigOutput")
167+
logger.info("Result of `${cli.toAbsolutePath()} config-ssh --yes --use-previous-options`: $sshConfigOutput")
168168
pi.fraction = 1.0
169169
}
170170
}

0 commit comments

Comments
 (0)