diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/helpers/commands-pipe.py | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/src/helpers/commands-pipe.py b/src/helpers/commands-pipe.py index 3ffc64545..1120bb09e 100755 --- a/src/helpers/commands-pipe.py +++ b/src/helpers/commands-pipe.py @@ -8,7 +8,6 @@ from vyos.configtree import ConfigTree  signal(SIGPIPE,SIG_DFL) -  config_string = sys.stdin.read().strip()  if not config_string: @@ -21,7 +20,7 @@ if not config_string:  # __root__ is hygienic enough.  config_string = "__root__ {{ {0} \n }}".format(config_string) -config_re = re.compile("(set|comment)\s+__root__\s+(.*)") +config_re = re.compile(r'(set|comment)\s+__root__\s+(.*)')  config = ConfigTree(config_string)  commands = config.to_commands() | 
