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):
|
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):
|
||||||
|
Reference in New Issue
Block a user