Refactoring to enable on_failure for imperative workflow
[ccsdk/cds.git] / components / model-catalog / blueprint-model / service-blueprint / vLB_CDS_RESTCONF / Scripts / kotlin / KotlinRestCall.kt
index 07168ce..c7f4c93 100644 (file)
@@ -87,7 +87,7 @@ open class ConfigDeploy : AbstractScriptComponentFunction() {
 \r
     override suspend fun recoverNB(runtimeException: RuntimeException, executionRequest: ExecutionServiceInput) {\r
         log.info("Executing Recovery")\r
-        bluePrintRuntimeService.getBlueprintError().addError("${runtimeException.message}")\r
+        addError("${runtimeException.message}")\r
     }\r
 }\r
 \r