fix 'weboob-config list' filtered by capabilities (closes #786)
This commit is contained in:
parent
05026b2f18
commit
5744a5b7a1
1 changed files with 3 additions and 3 deletions
|
|
@ -121,13 +121,13 @@ class WeboobCfg(ReplApplication):
|
|||
"""
|
||||
caps = line.split()
|
||||
for instance_name, name, params in sorted(self.weboob.backends_config.iter_backends()):
|
||||
backend = self.weboob.modules_loader.get_or_load_module(name)
|
||||
if caps and not self.caps_included(backend.iter_caps(), caps):
|
||||
module = self.weboob.modules_loader.get_or_load_module(name)
|
||||
if caps and not module.has_caps(*caps):
|
||||
continue
|
||||
row = OrderedDict([('Name', instance_name),
|
||||
('Module', name),
|
||||
('Configuration', ', '.join(
|
||||
'%s=%s' % (key, ('*****' if key in backend.config and backend.config[key].masked \
|
||||
'%s=%s' % (key, ('*****' if key in module.config and module.config[key].masked \
|
||||
else value)) \
|
||||
for key, value in params.iteritems())),
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue