FrappyMananger.get_cfg_file: service=None as argument returns None
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user