X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=heat%2FvFW_CNF_CDS%2Ftemplates%2Fcba%2FScripts%2Fkotlin%2FK8sHealthCheck.kt;h=dd87c6f5c1a9cde63acbe5b3720f8b58d838c320;hb=refs%2Fchanges%2F75%2F124375%2F1;hp=68d83e0364c709dd7ac096175afe6899fbf0d0f0;hpb=a4faf95fb18ca579132bb2d4db9631ccedab46f9;p=demo.git diff --git a/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt b/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt index 68d83e03..dd87c6f5 100644 --- a/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt +++ b/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt @@ -19,7 +19,7 @@ import kotlinx.coroutines.delay import kotlinx.coroutines.joinAll import kotlinx.coroutines.launch import kotlinx.coroutines.runBlocking -import org.onap.ccsdk.cds.blueprintsprocessor.core.BlueprintPropertiesService +import org.onap.ccsdk.cds.blueprintsprocessor.core.BluePrintPropertiesService import org.onap.ccsdk.cds.blueprintsprocessor.core.api.data.ExecutionServiceInput import org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.K8sConnectionPluginConfiguration import org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.instance.K8sPluginInstanceApi @@ -37,7 +37,7 @@ open class K8sHealthCheck : AbstractScriptComponentFunction() { } private fun initPluginApi(): K8sPluginInstanceApi { - val bluePrintPropertiesService: BlueprintPropertiesService = this.functionDependencyInstanceAsType("blueprintPropertiesService")!! + val bluePrintPropertiesService: BluePrintPropertiesService = this.functionDependencyInstanceAsType("bluePrintPropertiesService")!! val k8sConfiguration = K8sConnectionPluginConfiguration(bluePrintPropertiesService) return K8sPluginInstanceApi(k8sConfiguration) @@ -120,6 +120,6 @@ open class K8sHealthCheck : AbstractScriptComponentFunction() { override suspend fun recoverNB(runtimeException: RuntimeException, executionRequest: ExecutionServiceInput) { log.info("Executing Recovery") - bluePrintRuntimeService.getBlueprintError().addError("${runtimeException.message}", getName()) + bluePrintRuntimeService.getBluePrintError().addError("${runtimeException.message}", getName()) } }