From a7d38ba2ce5adae6c799c2df3b0c7c60e9c2ca9f Mon Sep 17 00:00:00 2001 From: edyta Date: Thu, 21 May 2020 11:29:00 +0200 Subject: Fix issue with loading rules properties Issue-ID: VNFSDK-587 Signed-off-by: Edyta Krukowska Change-Id: I1fae95e8cd67e6aea880b96457f35e1c187a63c3 --- Changelog.md | 9 ++++++++- .../src/main/java/org/onap/cvc/csar/VTPValidateCSAR.java | 2 +- 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); } -- cgit 1.2.3-korg