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):
info = []
for srv, cfginfo in all_cfg.items():
if cfginfo is not None:
info.append('frappy_%s(%r)' % (srv, cfginfo))
return 'currently configured: %s' % ', '.join(info)
addkwd = False
for srv in SERVICES:
cfginfo = all_cfg.get(srv)
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):