We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0b57cd commit e4c8769Copy full SHA for e4c8769
src/main/kotlin/com/coder/gateway/sdk/CoderRestClient.kt
@@ -182,7 +182,7 @@ open class CoderRestClient(
182
// It is possible for there to be resources with duplicate names so we
183
// need to use a set.
184
return workspaces.flatMap { ws ->
185
- ws.latestBuild.resources.filter { it.agents != null }.flatMap { it.agents!! }.map {
+ ws.latestBuild.resources.ifEmpty { resources(ws) }.filter { it.agents != null }.flatMap { it.agents!! }.map {
186
"${ws.name}.${it.name}"
187
}
188
}.toSet()
0 commit comments