aboutsummaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main/java
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2020-03-05 16:28:03 +0000
committerVasyl Razinkov <vasyl.razinkov@est.tech>2020-03-05 16:29:57 +0000
commita6b1e08a4f0c577746a688c1533259f2ab235f2f (patch)
treed590f780fe3abcdd36bd59e4f55323b6dc67859f /common-app-api/src/main/java
parent9b0f5789fade52e551917018c5fb82b6e5ee7845 (diff)
Fix broken CSIT
Change-Id: I92785294ef0e49477e8c33e30285b7d5978910a9 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-2759
Diffstat (limited to 'common-app-api/src/main/java')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/util/YamlToObjectConverter.java3
1 files changed, 2 insertions, 1 deletions
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> T convert(String fullFileName, Class<T> 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;