diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2016-11-11 21:27:57 +0100 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-11-11 21:32:53 +0100 |
commit | 351277bbc86e99f6e3630125c5ced973996fcf0c (patch) | |
tree | 32bae125a908c11914b1edfaa22a96e766de6135 | |
parent | 8b3537e210e9b536e5ab329381d67f32e3d21ce5 (diff) |
[bug] do not always print feedback from start command
-rwxr-xr-x | src/leap/bitmask/cli/bitmask_cli.py | 3 |
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 34c23569..893b7d11 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: |