From f675d4aa7a168c23d2ce02b706a952ac468cd9fc Mon Sep 17 00:00:00 2001 From: Alexander Schreiber <als@google.com> Date: Tue, 4 Dec 2007 11:18:42 +0000 Subject: [PATCH] Output reading fix for backend.NodeVolumes() Use result.stdout instead of result.output to avoid potential confusion by merged in error messages from stderr. Reviewed-by: iustinp --- lib/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/backend.py b/lib/backend.py index 7d02da862..65e8cced8 100644 --- a/lib/backend.py +++ b/lib/backend.py @@ -261,7 +261,7 @@ def NodeVolumes(): 'vg': line[3].strip(), } - return [map_line(line.split('|')) for line in result.output.splitlines()] + return [map_line(line.split('|')) for line in result.stdout.splitlines()] def BridgesExist(bridges_list): -- GitLab