diff options
author | drebs <drebs@riseup.net> | 2016-09-26 15:07:51 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2016-09-26 17:22:33 -0300 |
commit | e30e480cc6945cf59aaa4cf762fd9e9bbdc8abe3 (patch) | |
tree | 2fa3e10e42602c765d2d01ec7029c7d96bb831a0 /src/leap | |
parent | e2b051a1992ad468d87af325079f766e2e7f5376 (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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py index 35f8bf5..82a0d8e 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): |