FrappyMananger.get_cfg_file: service=None as argument returns None

This commit is contained in:
2025-07-08 11:28:01 +02:00
parent 48a45d454b
commit acd785061c

View File

@@ -240,6 +240,8 @@ class FrappyManager(ServiceManager):
raise FileNotFoundError(f'{cfgfile} not found')
def get_cfg_file(self, ins, service, cfg, lazy=False):
if service is None:
return None
filenames = [f'{cfg}_cfg.py']
if lazy:
filenames.extend([f'{cfg}.py', cfg])
@@ -248,7 +250,6 @@ class FrappyManager(ServiceManager):
cfgfile = join(cfgdir, filename)
if exists(cfgfile):
return cfgfile
print('NOT FOUND', cfg, self.config_dirs(ins, service), filenames)
return None
def is_cfg(self, ins, service, cfg):