aboutsummaryrefslogtreecommitdiffstats
path: root/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/SimpleStatusCheck.kt
diff options
context:
space:
mode:
authorMichal Chabiera <michal.chabiera@orange.com>2021-09-21 10:16:15 +0200
committerMichal Chabiera <michal.chabiera@orange.com>2021-09-21 08:56:33 +0000
commit212938a90e3e9b0c08fae81686515cd3119769ff (patch)
tree384ffddf54e1201a3441cb881cb76d0407d5f1d2 /heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/SimpleStatusCheck.kt
parent4215ab1d423564876079695762d33d8adc8fb01e (diff)
vFW CNF CDS Change Blueprint to BluePrint
Kotlin scripts don't comile after modification in CDS. Some Blueprint have to be changed into BluePrint Issue-ID: INT-1960 Signed-off-by: Michal Chabiera <michal.chabiera@orange.com> Change-Id: Iffeb76249651d2fd0a987d5b6f9ad9bd4c04632a (cherry picked from commit 129d553d323653461d14f248cb9e8b6f266eb5e3)
Diffstat (limited to 'heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/SimpleStatusCheck.kt')
-rw-r--r--heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/SimpleStatusCheck.kt10
1 files changed, 5 insertions, 5 deletions
diff --git a/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/SimpleStatusCheck.kt b/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/SimpleStatusCheck.kt
index e2d10534..c0671133 100644
--- a/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/SimpleStatusCheck.kt
+++ b/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/SimpleStatusCheck.kt
@@ -17,13 +17,13 @@
package org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts
import com.fasterxml.jackson.databind.node.ObjectNode
-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
import org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.instance.K8sRbInstanceStatus
import org.onap.ccsdk.cds.blueprintsprocessor.services.execution.AbstractScriptComponentFunction
-import org.onap.ccsdk.cds.controllerblueprints.core.BlueprintException
+import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintException
import org.slf4j.LoggerFactory
open class SimpleStatusCheck : AbstractScriptComponentFunction() {
@@ -39,8 +39,8 @@ open class SimpleStatusCheck : AbstractScriptComponentFunction() {
val configValueSetup: ObjectNode = getDynamicProperties("config-deploy-setup") as ObjectNode
- val bluePrintPropertiesService: BlueprintPropertiesService =
- this.functionDependencyInstanceAsType("blueprintPropertiesService")
+ val bluePrintPropertiesService: BluePrintPropertiesService =
+ this.functionDependencyInstanceAsType("bluePrintPropertiesService")
val k8sConfiguration = K8sConnectionPluginConfiguration(bluePrintPropertiesService)
@@ -78,7 +78,7 @@ open class SimpleStatusCheck : AbstractScriptComponentFunction() {
if (continueCheck) {
checkCount--
if (checkCount == 0)
- throw BlueprintException("Pods State verification failed")
+ throw BluePrintException("Pods State verification failed")
Thread.sleep(10000L)
} else
checkCount = 0