From e30e480cc6945cf59aaa4cf762fd9e9bbdc8abe3 Mon Sep 17 00:00:00 2001 From: drebs Date: Mon, 26 Sep 2016 15:07:51 -0300 Subject: [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. --- src/leap/bitmask/core/dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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): -- cgit v1.2.3