From c3c2ed404af5d36fc57634b5aa09e1e4c28b855e Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Thu, 9 Oct 2014 15:23:18 +0200 Subject: [PATCH] return correct exit status code for enable and disable commands --- weboob/applications/weboobcfg/weboobcfg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weboob/applications/weboobcfg/weboobcfg.py b/weboob/applications/weboobcfg/weboobcfg.py index d38cdcab..0a1ea0ba 100644 --- a/weboob/applications/weboobcfg/weboobcfg.py +++ b/weboob/applications/weboobcfg/weboobcfg.py @@ -159,7 +159,7 @@ class WeboobCfg(ReplApplication): Enable a disabled backend """ - self._do_toggle(name, 1) + return self._do_toggle(name, 1) def do_disable(self, name): """ @@ -167,7 +167,7 @@ class WeboobCfg(ReplApplication): Disable a backend """ - self._do_toggle(name, 0) + return self._do_toggle(name, 0) def do_edit(self, line): """