diff options
author | Andy Grover <andy@groveronline.com> | 2017-09-29 13:11:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-29 13:11:53 -0700 |
commit | c7f9600e9a4ffa904fcac738d4f8bbe7935796fb (patch) | |
tree | 666a3f92d3b3b8b214d3bfa7d88396bd3d802aa3 | |
parent | 2daf2eb0f3cc7058611b48e6d4b0246729374125 (diff) | |
parent | 59450e3eb33e9193f9385c19a80ee3f2fc319466 (diff) | |
download | configshell-fb-c7f9600e9a4ffa904fcac738d4f8bbe7935796fb.tar.gz |
Merge pull request #37 from ryran/run-stdin-strip-whitespace
tweak ConfigShell.run_stdin() to strip whitespace/newline from cmds
-rw-r--r-- | configshell/shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configshell/shell.py b/configshell/shell.py index 382d67b..01adbc8 100644 --- a/configshell/shell.py +++ b/configshell/shell.py @@ -876,7 +876,7 @@ class ConfigShell(object): self._current_node = self._root_node for cmdline in file_descriptor: try: - self.run_cmdline(cmdline) + self.run_cmdline(cmdline.strip()) except Exception as msg: self.log.error(msg) if exit_on_error is True: |