diff options
author | Ruben Pollan <meskio@sindominio.net> | 2017-05-12 19:16:53 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2017-05-12 19:16:53 +0200 |
commit | ea269ece1708f1f43133a6be63a32d53d6997704 (patch) | |
tree | 6cbab6b6c942088d4a864dde62776b85bd248af5 /src/leap/bitmask | |
parent | 8834ae9181134020bab77244afc752527bcb6fbe (diff) |
[bug] return ok from a succesful provider delete
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r-- | src/leap/bitmask/bonafide/service.py | 3 | ||||
-rw-r--r-- | src/leap/bitmask/core/dispatcher.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/bitmask/bonafide/service.py b/src/leap/bitmask/bonafide/service.py index b9aaf1a..43f5176 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 41b091f..ccb17db 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): |