diff options
-rw-r--r-- | csarvalidation/src/main/java/org/onap/validation/csar/CsarParser.java | 6 |
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; |