From 4003aaaa124b1ffa77d07f7e2ae5d16e2dddacf1 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Wed, 1 Mar 2017 01:13:21 +0100 Subject: [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 --- src/leap/bitmask/cli/mail.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/leap/bitmask/cli') 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) -- cgit v1.2.3