diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2017-03-10 15:02:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-10 15:02:41 +0100 |
commit | cc5fb876c005c443763f130f72acb1de0229efca (patch) | |
tree | 7f1fb4491e7d1bb2b31de29175fc2d67a6181bf0 /src | |
parent | a2d2e5235d17ebb0f87b9aecbc28170f83059485 (diff) | |
parent | 4c50a40d9a6fc5eda93186e86f24cf515afe837f (diff) | |
download | bcfg2-cc5fb876c005c443763f130f72acb1de0229efca.tar.gz bcfg2-cc5fb876c005c443763f130f72acb1de0229efca.tar.bz2 bcfg2-cc5fb876c005c443763f130f72acb1de0229efca.zip |
Merge pull request #382 from AlexanderS/feature/multiline-debug-scripts
Fix multiline scripts in bcfg2-info debug mode
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Bcfg2/Server/Info.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Info.py b/src/lib/Bcfg2/Server/Info.py index 418d984a1..bf23dc4cb 100644 --- a/src/lib/Bcfg2/Server/Info.py +++ b/src/lib/Bcfg2/Server/Info.py @@ -143,9 +143,7 @@ class Debug(InfoCmd): if setup.cmd_list: console = InteractiveConsole(locals()) for command in setup.cmd_list.readlines(): - command = command.strip() - if command: - console.push(command) + console.push(command.rstrip()) if not setup.non_interactive: print("Dropping to interpreter; press ^D to resume") self.interpreters[setup.interpreter](self.core.get_locals()) |