From 4c50a40d9a6fc5eda93186e86f24cf515afe837f Mon Sep 17 00:00:00 2001 From: s19n Date: Thu, 31 Mar 2016 16:48:45 +0200 Subject: Fix multiline scripts in bcfg2-info debug mode --- src/lib/Bcfg2/Server/Info.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/lib') 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()) -- cgit v1.2.3-1-g7c22