From a6b1e08a4f0c577746a688c1533259f2ab235f2f Mon Sep 17 00:00:00 2001 From: vasraz Date: Thu, 5 Mar 2020 16:28:03 +0000 Subject: Fix broken CSIT Change-Id: I92785294ef0e49477e8c33e30285b7d5978910a9 Signed-off-by: Vasyl Razinkov Issue-ID: SDC-2759 --- .../main/java/org/openecomp/sdc/common/util/YamlToObjectConverter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common-app-api/src/main') diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/util/YamlToObjectConverter.java b/common-app-api/src/main/java/org/openecomp/sdc/common/util/YamlToObjectConverter.java index 756670c54a..92f633dcd1 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/common/util/YamlToObjectConverter.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/common/util/YamlToObjectConverter.java @@ -147,7 +147,8 @@ public class YamlToObjectConverter { } public T convert(String fullFileName, Class className) throws YamlConversionException { - if (!new File(fullFileName).exists()) { + final File file = new File(fullFileName); + if (!file.exists() || file.isDirectory()) { log.warn(EcompLoggerErrorCode.UNKNOWN_ERROR,"","", "The file {} cannot be found. Ignore reading configuration.", fullFileName); return null; -- cgit 1.2.3-korg