Blame SOURCES/sos-bz1030617-rhevm-treat-vdsmlogs-as-string.patch

629484
commit 3d4afc252c9b65f350285d166d625067ee945934
629484
Author: Bryn M. Reeves <bmr@redhat.com>
629484
Date:   Mon Feb 3 12:26:45 2014 +0000
629484
629484
    Always treat rhevm vdsmlogs option as string
629484
    
629484
    The rhevm plugin has a 'vdsmlogs' option to pass in a set of log
629484
    files to be collected. When run with '-a' (or with
629484
    '-krhevm.vdsmlogs) this evaluates to 'True' (a bool) and causes
629484
    an exception when this is passed to add_copy_specs().
629484
    
629484
    Always treat the value as a string.
629484
    
629484
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
629484
629484
diff --git a/sos/plugins/rhevm.py b/sos/plugins/rhevm.py
629484
index 39b32f4..8068e05 100644
629484
--- a/sos/plugins/rhevm.py
629484
+++ b/sos/plugins/rhevm.py
629484
@@ -13,7 +13,7 @@ class RhevM(Plugin, RedHatPlugin):
629484
         self.add_copy_spec("/etc/rhevm")
629484
         self.add_copy_spec("/var/log/rhevm")
629484
         if self.get_option("vdsmlogs"):
629484
-            self.add_copy_spec(self.get_option("vdsmlogs"))
629484
+            self.add_copy_spec(str(self.get_option("vdsmlogs")))
629484
 
629484
     def postproc(self):
629484
         """