summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredyta <edyta.krukowska@nokia.com>2020-05-21 11:29:00 +0200
committeredyta <edyta.krukowska@nokia.com>2020-05-21 13:12:13 +0200
commita7d38ba2ce5adae6c799c2df3b0c7c60e9c2ca9f (patch)
tree5d581543cc367ebc5c81e9b5f76b2c6fbaeca9b5
parentedbd7b22bfcd19373e1f17aa2f8f177f7df63c87 (diff)
Fix issue with loading rules properties
Issue-ID: VNFSDK-587 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I1fae95e8cd67e6aea880b96457f35e1c187a63c3
-rw-r--r--Changelog.md9
-rw-r--r--csarvalidation/src/main/java/org/onap/cvc/csar/VTPValidateCSAR.java2
2 files changed, 9 insertions, 2 deletions
diff --git a/Changelog.md b/Changelog.md
index 47101f2..91dcbd6 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -25,4 +25,11 @@ All notable changes to this project will be documented in this file.
### Fixed
- Fixed bug that was generating invalid report when user run validation with all rules and single validation fails.
- - https://jira.onap.org/browse/VNFSDK-586 \ No newline at end of file
+ - https://jira.onap.org/browse/VNFSDK-586
+
+
+## [1.2.x]
+
+### Fixed
+- Fixed bug that was causing problem with loading rules properties.
+ - https://jira.onap.org/browse/VNFSDK-587 \ No newline at end of file
diff --git a/csarvalidation/src/main/java/org/onap/cvc/csar/VTPValidateCSAR.java b/csarvalidation/src/main/java/org/onap/cvc/csar/VTPValidateCSAR.java
index 043d4dc..835bc11 100644
--- a/csarvalidation/src/main/java/org/onap/cvc/csar/VTPValidateCSAR.java
+++ b/csarvalidation/src/main/java/org/onap/cvc/csar/VTPValidateCSAR.java
@@ -178,7 +178,7 @@ public class VTPValidateCSAR extends OnapCommand {
private static Properties properties = new Properties();
static {
try {
- properties.load(VTPValidateCSAR.class.getClass().getResourceAsStream("/vnfreqs.properties"));
+ properties.load(VTPValidateCSAR.class.getResourceAsStream("/vnfreqs.properties"));
} catch (Exception e) {
LOG.error(e.getMessage(), e);
}