summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-08-29 12:42:51 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-08-29 12:45:23 -0400
commit15394a9cefdf6f8ca9cbb6604c6f68425577ae90 (patch)
treeabf25582d5ace2ebcf0f87bcfeef3f66344de008
parentec86a9c330fd6c183563ca3b2c5b6b2068bb0e3b (diff)
[bug] return active user as a dict
since the command dispatcher expects dicts now
-rw-r--r--bonafide/src/leap/bonafide/service.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bonafide/src/leap/bonafide/service.py b/bonafide/src/leap/bonafide/service.py
index ff3c30a..14585ef 100644
--- a/bonafide/src/leap/bonafide/service.py
+++ b/bonafide/src/leap/bonafide/service.py
@@ -115,5 +115,6 @@ class BonafideService(HookableService):
return d
def do_get_active_user(self):
- user = self._active_user
- return defer.succeed(user)
+ user = self._active_user or '<none>'
+ info = {'user': user}
+ return defer.succeed(info)