summaryrefslogtreecommitdiffstats
path: root/ccsdk-app-common
diff options
context:
space:
mode:
Diffstat (limited to 'ccsdk-app-common')
-rw-r--r--ccsdk-app-common/pom.xml4
-rw-r--r--ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/inventory/ServiceType.java13
2 files changed, 9 insertions, 8 deletions
diff --git a/ccsdk-app-common/pom.xml b/ccsdk-app-common/pom.xml
index 48a6521..36edff4 100644
--- a/ccsdk-app-common/pom.xml
+++ b/ccsdk-app-common/pom.xml
@@ -6,12 +6,12 @@
<parent>
<groupId>org.onap.ccsdk.dashboard</groupId>
<artifactId>ccsdk-app-parent</artifactId>
- <version>1.3.0-SNAPSHOT</version>
+ <version>1.3.1-SNAPSHOT</version>
</parent>
<groupId>org.onap.ccsdk.dashboard</groupId>
<artifactId>ccsdk-app-common</artifactId>
- <version>1.3.0-SNAPSHOT</version>
+ <version>1.3.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>ONAP Operations Manager Dashboard common</name>
<description>CCSDK Dashboard common Java code</description>
diff --git a/ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/inventory/ServiceType.java b/ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/inventory/ServiceType.java
index 6a7868e..4af4cb1 100644
--- a/ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/inventory/ServiceType.java
+++ b/ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/model/inventory/ServiceType.java
@@ -95,10 +95,10 @@ public class ServiceType {
private final Optional<String> deactivated;
/** Map that stores the inputs for a Blueprint */
- private final Map<String, BlueprintInput> blueprintInputs;
+ private Map<String, BlueprintInput> blueprintInputs;
/** Description of a blueprint */
- private final String blueprintDescription;
+ private String blueprintDescription;
/** internal role based setting */
private Optional<Boolean> canDeploy;
@@ -233,11 +233,12 @@ public class ServiceType {
this.deactivated = Optional.ofNullable(deactivated);
this.canDeploy = Optional.of(false);
try {
- this.blueprintInputs = Blueprint.parse(blueprintTemplate).getInputs();
- this.blueprintDescription = Blueprint.parse(blueprintTemplate).getDescription();
+ Blueprint bpObj = Blueprint.parse(blueprintTemplate);
+ this.blueprintInputs = bpObj.getInputs();
+ this.blueprintDescription = bpObj.getDescription();
} catch (BlueprintParseException e) {
- throw new RuntimeException(
- "Error while parsing blueprint template for " + this.typeName + " " + this.typeVersion, e);
+/* throw new RuntimeException(
+ "Error while parsing blueprint template for " + this.typeName + " " + this.typeVersion, e);*/
}
}