summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-06-08 21:04:33 +0200
committerRuben Pollan <meskio@sindominio.net>2017-06-12 20:34:15 +0200
commit8323abee4c19e2384a2a3a8e2a5829f73bbecfce (patch)
treec90d8d86dfbb1ac4978aa923f823d6afd49125ef /src
parentf0117969b19e05d568a108b12390c47a011576f6 (diff)
[bug] pass the --private flag to the dispatcher
- Resolves: #8923
Diffstat (limited to 'src')
-rw-r--r--src/leap/bitmask/cli/keys.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/leap/bitmask/cli/keys.py b/src/leap/bitmask/cli/keys.py
index b11d280..0412efe 100644
--- a/src/leap/bitmask/cli/keys.py
+++ b/src/leap/bitmask/cli/keys.py
@@ -78,6 +78,10 @@ SUBCOMMANDS:
if not userid:
userid = self.cfg.get('bonafide', 'active', default='')
self.data += ['export', userid, subargs.address[0]]
+ if subargs.private:
+ self.data += ['private']
+ else:
+ self.data += ['public']
return self._send(self._print_key)
@@ -124,6 +128,10 @@ SUBCOMMANDS:
userid = self.cfg.get('bonafide', 'active')
self.data += ['delete', userid, subargs.address[0]]
+ if subargs.private:
+ self.data += ['private']
+ else:
+ self.data += ['public']
return self._send()
def _print_key_list(self, keys):