[WIP] improve auto stick handling

This commit is contained in:
2023-09-12 12:25:07 +02:00
parent 68153df77c
commit 649e2b7022
2 changed files with 14 additions and 6 deletions

View File

@ -316,8 +316,11 @@ class FrappyNode(SecNodeDevice, Moveable):
running_cfg = cfginfo.get((ins, self.service), '')
if not forced:
sea_cfg = fm.cfg_from_sea(ins).get(self.service)
if sea_cfg == '?':
self.log.warning('undefined sea device')
if '?' in sea_cfg:
if sea_cfg == '?':
self.log.warning('undefined sea device')
else:
self.log.warning(f"missing frappy cfg file for {sea_cfg.replace('?', ''))}")
cfg = '' # stop server
elif sea_cfg:
cfg = sea_cfg