fix return value of frappy command

This commit is contained in:
2022-06-28 14:49:04 +02:00
parent fbfb060e3b
commit 53a8517464

View File

@ -60,10 +60,16 @@ SERVICES = FrappyManager.services
def all_info(all_cfg): def all_info(all_cfg):
info = [] info = []
for srv, cfginfo in all_cfg.items(): addkwd = False
if cfginfo is not None: for srv in SERVICES:
info.append('frappy_%s(%r)' % (srv, cfginfo)) cfginfo = all_cfg.get(srv)
return 'currently configured: %s' % ', '.join(info) if cfginfo is None:
addkwd = True
elif addkwd:
info.append('%s=%r' % (srv, cfginfo))
else:
info.append(repr(cfginfo))
return 'currently configured: frappy(%s)' % ', '.join(info)
def frappy_start(**services): def frappy_start(**services):