diff --git a/client-cli/pvc.py b/client-cli/pvc.py index 1b580a6e..a634f29f 100755 --- a/client-cli/pvc.py +++ b/client-cli/pvc.py @@ -735,7 +735,7 @@ def vm_modify(domain, cfgfile, editor, restart): for line in diff: if re.match('^[+]', line) is not None: click.echo(colorama.Fore.GREEN + line + colorama.Fore.RESET) - elif re.match('^[-]', line) is not None: + elif re.match('^\-', line) is not None: click.echo(colorama.Fore.RED + line + colorama.Fore.RESET) elif re.match('^[^]', line) is not None: click.echo(colorama.Fore.BLUE + line + colorama.Fore.RESET) @@ -3041,7 +3041,7 @@ def provisioner_userdata_modify(name, filename, editor): for line in diff: if re.match('^[+]', line) is not None: click.echo(colorama.Fore.GREEN + line + colorama.Fore.RESET) - elif re.match('^[-]', line) is not None: + elif re.match('^\-', line) is not None: click.echo(colorama.Fore.RED + line + colorama.Fore.RESET) elif re.match('^[^]', line) is not None: click.echo(colorama.Fore.BLUE + line + colorama.Fore.RESET) @@ -3226,7 +3226,7 @@ def provisioner_script_modify(name, filename, editor): for line in diff: if re.match('^[+]', line) is not None: click.echo(colorama.Fore.GREEN + line + colorama.Fore.RESET) - elif re.match('^[-]', line) is not None: + elif re.match('^\-', line) is not None: click.echo(colorama.Fore.RED + line + colorama.Fore.RESET) elif re.match('^[^]', line) is not None: click.echo(colorama.Fore.BLUE + line + colorama.Fore.RESET)