Add module_name param in add_backend to allow command line interaction

This commit is contained in:
Kitof 2015-04-01 12:00:56 +02:00 committed by Romain Bignon
commit 7155539965
3 changed files with 29 additions and 21 deletions

View file

@ -711,7 +711,7 @@ class ReplApplication(Cmd, ConsoleApplication):
print('Disabled: %s' % ', '.join(disabled_backends_names))
elif action == 'add':
for name in given_backend_names:
instname = self.add_backend(name)
instname = self.add_backend(name, name)
if instname:
self.load_backends(names=[instname])
elif action == 'register':