summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/cli/vpn.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-08-31 10:53:20 +0200
committerRuben Pollan <meskio@sindominio.net>2017-08-31 12:56:43 +0200
commit0db7a322a103b9886e74d9e017aa4a6298fdbe55 (patch)
treead13ccc656fb73fb23d06e307032188c0e50afe8 /src/leap/bitmask/cli/vpn.py
parent663c87c221c42e081b5947e298bc9f0541e6913a (diff)
[feat] make the cli default_printer more generic
Now the default_printer can handle other types than dict, like lists or strings.
Diffstat (limited to 'src/leap/bitmask/cli/vpn.py')
-rw-r--r--src/leap/bitmask/cli/vpn.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/leap/bitmask/cli/vpn.py b/src/leap/bitmask/cli/vpn.py
index bcc2a448..cf4cf169 100644
--- a/src/leap/bitmask/cli/vpn.py
+++ b/src/leap/bitmask/cli/vpn.py
@@ -69,7 +69,7 @@ SUBCOMMANDS:
self.data += ['start', provider]
- return self._send(command.default_dict_printer)
+ return self._send(command.default_printer)
def status(self, raw_args):
self.data += ['status']
@@ -95,7 +95,7 @@ SUBCOMMANDS:
self.data += ['check', provider]
- return self._send(command.default_dict_printer)
+ return self._send(command.default_printer)
def list(self, raw_args):
self.data += ['list']
@@ -116,7 +116,7 @@ SUBCOMMANDS:
uid = self.cfg.get('bonafide', 'active', default=None)
self.data += ['get_cert', uid]
- return self._send(command.default_dict_printer)
+ return self._send(command.default_printer)
def location_printer(result):