Declare all_outputs in outer scope

This commit is contained in:
Pratik Mallya 2016-03-08 13:01:33 -06:00 committed by Xavier Fernandez
parent 872341d0be
commit 0964c9797c
1 changed files with 1 additions and 1 deletions

View File

@ -670,8 +670,8 @@ def call_subprocess(cmd, show_stdout=True, cwd=None,
"Error %s while executing command %s", exc, command_desc,
)
raise
all_output = []
if stdout is not None:
all_output = []
while True:
line = console_to_str(proc.stdout.readline())
if not line: