Skip to content

Commit

Permalink
Fix multiline scripts in bcfg2-info debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
s19n authored and AlexanderS committed Mar 9, 2017
1 parent 26944da commit 4c50a40
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/Bcfg2/Server/Info.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ def run(self, setup):
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())
Expand Down

0 comments on commit 4c50a40

Please sign in to comment.