When a CBA defines a String selector, it will be passed
as TextNode. This enables using using application properties
to define grpcClientProperties for py executor.
Issue-ID: CCSDK-3272
Change-Id: Id4fcd4f43306e385458eb4decbb07f923a957cc0
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
package org.onap.ccsdk.cds.blueprintsprocessor.services.execution
import com.fasterxml.jackson.databind.JsonNode
+import com.fasterxml.jackson.databind.node.TextNode
import com.github.marcoferrer.krotoplus.coroutines.client.ClientBidiCallChannel
import com.github.marcoferrer.krotoplus.coroutines.client.clientCallBidiStreaming
import io.grpc.ManagedChannel
private fun grpcProperties(selector: Any): GrpcClientProperties {
return when (selector) {
- is String -> {
- bluePrintGrpcLibPropertyService.grpcClientProperties(selector.toString())
+ is TextNode -> {
+ bluePrintGrpcLibPropertyService.grpcClientProperties(selector.asText())
}
is JsonNode -> {
bluePrintGrpcLibPropertyService.grpcClientProperties(selector)