Skip to content

Commit 4195742

Browse files
committed
define ALL_CONFIGS constant
1 parent 4a60e5c commit 4195742

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ziti/src/main/kotlin/org/openziti/api/Controller.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ import kotlin.reflect.full.memberFunctions
4646
internal class Controller(endpoint: String, sslContext: SSLContext):
4747
Logged by ZitiLog() {
4848

49+
companion object {
50+
val ALL_CONFIGS = listOf("all")
51+
}
52+
4953
private val pageSize = 100
5054

5155
private val http = HttpClient.newBuilder()
@@ -142,7 +146,7 @@ internal class Controller(endpoint: String, sslContext: SSLContext):
142146

143147
return pagingApiRequest {
144148
limit, offset -> serviceApi.listServices(limit, offset,
145-
null, listOf("all"), null, null)
149+
null, ALL_CONFIGS, null, null)
146150
}
147151
}
148152

@@ -277,7 +281,7 @@ internal class Controller(endpoint: String, sslContext: SSLContext):
277281
.os(info.os)
278282
.osRelease(info.osRelease)
279283
.osVersion(info.osVersion)
280-
configTypes = listOf("#all")
284+
configTypes = ALL_CONFIGS
281285
}
282286

283287
internal inner class ReqInterceptor(val session: ApiSession? = null): Consumer<HttpRequest.Builder> {

0 commit comments

Comments
 (0)