Blame SOURCES/sos-bz1036752-fix-gluster-volume-name-extraction.patch

629484
commit 8447dec1831feb4d93bf8d300880f87765efb1c8
629484
Author: Bryn M. Reeves <bmr@redhat.com>
629484
Date:   Mon Feb 10 15:07:36 2014 +0000
629484
629484
    Fix gluster volume name extraction
629484
    
629484
    The get_volume_names() function in the gluster plugin tries to
629484
    extract volume names from the output of the "gluster volume info"
629484
    command using a slice range. The range start should be 12 to
629484
    account for the "Volume Name:" label at the start of the line.
629484
    
629484
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
629484
629484
diff --git a/sos/plugins/gluster.py b/sos/plugins/gluster.py
629484
index 02dbac3..4286b59 100644
629484
--- a/sos/plugins/gluster.py
629484
+++ b/sos/plugins/gluster.py
629484
@@ -39,7 +39,7 @@ class Gluster(Plugin, RedHatPlugin):
629484
         for line in fp.readlines():
629484
             if not line.startswith("Volume Name:"):
629484
                 continue
629484
-            volname = line[14:-1]
629484
+            volname = line[12:-1]
629484
             out.append(volname)
629484
         fp.close()
629484
         return out