Fix broken CSIT
[sdc.git] / common-app-api / src / main / java / org / openecomp / sdc / common / util / YamlToObjectConverter.java
index 756670c..92f633d 100644 (file)
@@ -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;