summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/cli
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/cli')
-rw-r--r--src/leap/bitmask/cli/command.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leap/bitmask/cli/command.py b/src/leap/bitmask/cli/command.py
index 4bee325d..da0c40b0 100644
--- a/src/leap/bitmask/cli/command.py
+++ b/src/leap/bitmask/cli/command.py
@@ -52,7 +52,12 @@ def default_dict_printer(result):
def print_status(status, depth=0):
- for name, v in [(' status', status)] + status['childrenStatus'].items():
+
+ if status.get('vpn') == 'disabled':
+ print('vpn ' + Fore.RED + 'disabled' + Fore.RESET)
+ return
+
+ for name, v in [('status', status)] + status['childrenStatus'].items():
line = Fore.RESET + name.ljust(12)
if v['status'] in ('on', 'starting'):
line += Fore.GREEN