Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _read_config(self, project_dir):
# refresh debops._configfiles with set environment
cfn = debops.config._get_config_filenames()
cfn.remove('/etc/debops.cfg')
debops.config._configfiles = cfn
return debops.config.read_config(project_dir)