summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/cli/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/cli/command.py')
-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 4bee325..da0c40b 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