From ea269ece1708f1f43133a6be63a32d53d6997704 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Fri, 12 May 2017 19:16:53 +0200 Subject: [bug] return ok from a succesful provider delete --- src/leap/bitmask/bonafide/service.py | 3 ++- src/leap/bitmask/core/dispatcher.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/leap') diff --git a/src/leap/bitmask/bonafide/service.py b/src/leap/bitmask/bonafide/service.py index b9aaf1af..43f51768 100644 --- a/src/leap/bitmask/bonafide/service.py +++ b/src/leap/bitmask/bonafide/service.py @@ -125,7 +125,8 @@ class BonafideService(HookableService): return self._bonafide.do_get_provider(domain) def do_provider_delete(self, domain): - return self._bonafide.do_provider_delete(domain) + self._bonafide.do_provider_delete(domain) + return {'delete': 'ok'} def do_provider_list(self, seeded=False): return self._bonafide.do_provider_list(seeded) diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py index 41b091f7..ccb17db5 100644 --- a/src/leap/bitmask/core/dispatcher.py +++ b/src/leap/bitmask/core/dispatcher.py @@ -94,7 +94,7 @@ class ProviderCmd(SubCommand): @register_method("") def do_DELETE(self, bonafide, *parts): domain = parts[2] - bonafide.do_provider_delete(domain) + return bonafide.do_provider_delete(domain) @register_method("[{'domain': str}]") def do_LIST(self, bonafide, *parts): -- cgit v1.2.3