summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2016-09-26 15:07:51 -0300
committerdrebs <drebs@riseup.net>2016-09-26 17:22:33 -0300
commite30e480cc6945cf59aaa4cf762fd9e9bbdc8abe3 (patch)
tree2fa3e10e42602c765d2d01ec7029c7d96bb831a0 /src/leap
parente2b051a1992ad468d87af325079f766e2e7f5376 (diff)
[bug] return logout message got from bonafide (fixes #8461)
The CLI prints results of commands using a default dictionary printer. If the command result is not a dictionary, that writer will fail. The logout command was returning None, so the printer was breaking when using the CLI to logout. This commit makes the logout command actually return the dictionary with the logout message, thus not breaking the printer.
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/core/dispatcher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py
index 35f8bf5c..82a0d8e7 100644
--- a/src/leap/bitmask/core/dispatcher.py
+++ b/src/leap/bitmask/core/dispatcher.py
@@ -117,7 +117,7 @@ class UserCmd(SubCommand):
@register_method("{'logout': 'ok'}")
def do_LOGOUT(self, bonafide, *parts):
user = parts[2]
- bonafide.do_logout(user)
+ return bonafide.do_logout(user)
@register_method('str')
def do_ACTIVE(self, bonafide, *parts):