def get_file_content()

in config_operator/config_operator/config_source/LocalDirConfig.py [0:0]


    def get_file_content(self, file_name: str):
        logger.info(f'read configuration file {file_name}')
        try:
            self._test_read_yaml(file_name)
            with open(os.path.join(self._local_dir, file_name), 'r') as f:
                return f.read()
        except UnicodeDecodeError as e:
            raise UnreadableFileException(e)
        except yaml.parser.ParserError as e:
            raise UnreadableFileException(e)
        except yaml.scanner.ScannerError as e:
            raise UnreadableFileException(e)