summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-11-11 21:27:57 +0100
committerKali Kaneko (leap communications) <kali@leap.se>2016-11-11 21:32:53 +0100
commit351277bbc86e99f6e3630125c5ced973996fcf0c (patch)
tree32bae125a908c11914b1edfaa22a96e766de6135 /src/leap
parent8b3537e210e9b536e5ab329381d67f32e3d21ce5 (diff)
[bug] do not always print feedback from start command
Diffstat (limited to 'src/leap')
-rwxr-xr-xsrc/leap/bitmask/cli/bitmask_cli.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/cli/bitmask_cli.py b/src/leap/bitmask/cli/bitmask_cli.py
index 34c2356..893b7d1 100755
--- a/src/leap/bitmask/cli/bitmask_cli.py
+++ b/src/leap/bitmask/cli/bitmask_cli.py
@@ -96,7 +96,6 @@ GENERAL COMMANDS:
if raw_args and ('--verbose' in raw_args or '-v' in raw_args):
cmd += ' --verbose'
commands.getoutput(cmd)
- command.default_dict_printer({'start': 'ok'})
return defer.succeed(None)
def version(self, raw_args):
@@ -129,6 +128,8 @@ def execute():
yield cli._send(
timeout=0.1, printer=_null_printer,
errb=lambda: cli.start(args))
+ if 'start' in sys.argv or 'restart' in sys.argv:
+ command.default_dict_printer({'start': 'ok'})
cli.data = []
yield cli.execute(sys.argv[1:])
try: