diff options
author | Ruben Pollan <meskio@sindominio.net> | 2017-03-01 01:13:21 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2017-03-03 00:47:22 +0100 |
commit | 4003aaaa124b1ffa77d07f7e2ae5d16e2dddacf1 (patch) | |
tree | 295e72d97ff8a24048fa647420233128a47c4bb8 /src/leap/bitmask/cli | |
parent | 4a5e181138e4ccd324d33426f3903825c178af48 (diff) |
[feat] mail status will only work for a valid userid
We used to return the system status if no userid is provided. We don't
do it anymore, now is only userid based.
- Resolves: #8785
Diffstat (limited to 'src/leap/bitmask/cli')
-rw-r--r-- | src/leap/bitmask/cli/mail.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/leap/bitmask/cli/mail.py b/src/leap/bitmask/cli/mail.py index 025804e..fd44383 100644 --- a/src/leap/bitmask/cli/mail.py +++ b/src/leap/bitmask/cli/mail.py @@ -50,15 +50,12 @@ SUBCOMMANDS: help='uid to check the status of') subargs = parser.parse_args(raw_args) - self.data.append('status') - uid = None if subargs.uid: uid = subargs.uid else: uid = self.cfg.get('bonafide', 'active', default=None) - if uid: - self.data.append(uid) + self.data += ['status', uid] return self._send(self._print_status) |