return correct exit status code for enable and disable commands

This commit is contained in:
Romain Bignon 2014-10-09 15:23:18 +02:00
commit c3c2ed404a

View file

@ -159,7 +159,7 @@ class WeboobCfg(ReplApplication):
Enable a disabled backend Enable a disabled backend
""" """
self._do_toggle(name, 1) return self._do_toggle(name, 1)
def do_disable(self, name): def do_disable(self, name):
""" """
@ -167,7 +167,7 @@ class WeboobCfg(ReplApplication):
Disable a backend Disable a backend
""" """
self._do_toggle(name, 0) return self._do_toggle(name, 0)
def do_edit(self, line): def do_edit(self, line):
""" """