File tree 2 files changed +3
-4
lines changed
src/main/kotlin/com/coder/toolbox
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -192,10 +192,9 @@ open class CoderRestClient(
192
192
}
193
193
194
194
/* *
195
- * Retrieves all the agent names for all workspaces, including those that
196
- * are off. Meant to be used when configuring SSH.
195
+ * Maps the list of workspaces to the associated agents.
197
196
*/
198
- suspend fun withAgents (workspaces : List <Workspace >): Set <Pair <Workspace , WorkspaceAgent >> {
197
+ suspend fun groupByAgents (workspaces : List <Workspace >): Set <Pair <Workspace , WorkspaceAgent >> {
199
198
// It is possible for there to be resources with duplicate names so we
200
199
// need to use a set.
201
200
return workspaces.flatMap { ws ->
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ open class CoderProtocolHandler(
162
162
}
163
163
164
164
context.logger.info(" Configuring Coder CLI..." )
165
- cli.configSsh(restClient.withAgents (workspaces))
165
+ cli.configSsh(restClient.groupByAgents (workspaces))
166
166
167
167
if (shouldWaitForAutoLogin) {
168
168
isInitialized.waitForTrue()
You can’t perform that action at this time.
0 commit comments