fix return value of frappy command
This commit is contained in:
14
commands.py
14
commands.py
@ -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):
|
||||
|
Reference in New Issue
Block a user