From 351277bbc86e99f6e3630125c5ced973996fcf0c Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Fri, 11 Nov 2016 21:27:57 +0100 Subject: [bug] do not always print feedback from start command --- src/leap/bitmask/cli/bitmask_cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/leap/bitmask') 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: -- cgit v1.2.3