summaryrefslogtreecommitdiffstats
path: root/csarvalidation/src/main/java
diff options
context:
space:
mode:
authorAvinashS <avinash.s@huawei.com>2017-09-15 06:40:51 +0000
committerAvinash S <avinash.s@huawei.com>2017-09-15 06:44:17 +0000
commitf5cd1fa79a74f2e2cbb9825257f0535af303da80 (patch)
treee36ecc159be9735665ae115b240bbfa0c66e1510 /csarvalidation/src/main/java
parent13d2f6721f1ef051cca2c22317363be963271635 (diff)
Fix Tosca meta validation
Fixed failure due to empty chars in the TOSCA-Meta string. IssueId: VNFSDK-86 Change-Id: Ic5301cb3763cabdbb3cfd49e32f0b592acc911d9 Signed-off-by: AvinashS <avinash.s@huawei.com>
Diffstat (limited to 'csarvalidation/src/main/java')
-rw-r--r--csarvalidation/src/main/java/org/onap/validation/csar/CsarParser.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/csarvalidation/src/main/java/org/onap/validation/csar/CsarParser.java b/csarvalidation/src/main/java/org/onap/validation/csar/CsarParser.java
index 62e8492..410562c 100644
--- a/csarvalidation/src/main/java/org/onap/validation/csar/CsarParser.java
+++ b/csarvalidation/src/main/java/org/onap/validation/csar/CsarParser.java
@@ -48,7 +48,9 @@ public class CsarParser {
*
* validateCsarMeta();
*
- *
+ * validateToscaMeta();
+ *
+ * validateManifest();
* }
*/
@@ -167,7 +169,7 @@ public class CsarParser {
for(String strLine : lines) {
if (!attribute.isEmpty() && strLine.contains(attribute)) {
- return strLine.substring(attribute.length(), strLine.length());
+ return strLine.substring(attribute.length(), strLine.length()).trim();
}
}
return null;