Restore correct colors in verbose mode

Restore stderr color when printing to stderr, not stdout color
This commit is contained in:
Jean-Philippe Ouellet 2017-11-20 00:45:53 -05:00
parent 57bf88aa30
commit 6afe5a98c2
No known key found for this signature in database
GPG Key ID: 4747332C27533622

View File

@ -194,7 +194,7 @@ def main(args=None, app=None):
if verbose > 0:
if args.color_output:
print('\033[0mRunning \'{}\' on {}\033[0;{}m'.format(
args.cmd, vm.name, args.color_output),
args.cmd, vm.name, args.color_stderr),
file=sys.stderr)
else:
print('Running \'{}\' on {}'.format(args.cmd, vm.name),