diff options
| author | 2018-09-29 09:46:47 +0100 | |
|---|---|---|
| committer | 2018-09-29 09:46:47 +0100 | |
| commit | c12e8220ac99adb369bf96e515c675c277f708bf (patch) | |
| tree | f2db29afa7711fd60b43d90db2a9ed47cacde91e /modules/scripts.py | |
| parent | Add scripts.py, to support basic modules in languages other than python (diff) | |
| signature | ||
Strip trailing newlines from scripts.py returns
Diffstat (limited to 'modules/scripts.py')
| -rw-r--r-- | modules/scripts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/scripts.py b/modules/scripts.py index bb9f8fb8..2025f067 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -31,7 +31,7 @@ class Module(object): # execution of script expired return - out = proc.stdout.read().decode("utf8") + out = proc.stdout.read().decode("utf8").strip("\n") if out: if proc.returncode == 0: if "stdout" in event: |
