aboutsummaryrefslogtreecommitdiffstats
path: root/asdc-controller/src/main/java/org/onap
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2019-01-22 14:27:55 +0530
committersubhash kumar singh <subhash.kumar.singh@huawei.com>2019-01-22 14:27:55 +0530
commit8ac648a7e1148caca6d8a3bab799893393246d8a (patch)
treea36810dbeb64ea7c0766a416b7696e121b6936f5 /asdc-controller/src/main/java/org/onap
parentb26de276956c687b8ff2dd1ec04861ad23c4c31e (diff)
Fix Integer cast exception in getResourceInputso-1408
Fix Integer cast exception in getResourceInput. Change-Id: I2022ec07fe12bfe1764f734f1776f6bd32143b84 Issue-ID: SO-1408 Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
Diffstat (limited to 'asdc-controller/src/main/java/org/onap')
-rw-r--r--asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java b/asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java
index b3fda73045..aa1e1a8bd9 100644
--- a/asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java
+++ b/asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java
@@ -425,7 +425,7 @@ public class ToscaResourceInstaller {
if(input.getName().equals(inputName)) {
// keep both input name and default value
// if service input does not supplies value the use default value
- String defaultValue = input.getDefault() != null ? (String) input.getDefault() : "";
+ String defaultValue = input.getDefault() != null ? (String) input.getDefault().toString() : "";
output = inputName + "|" + defaultValue;// return default value
}
}