Blame SOURCES/sos-bz1019356-fix-alloptions.patch

6b17e9
commit d1bedc1ef48f6abe6f582336e275468a1e3634b9
6b17e9
Author: Bryn M. Reeves <bmr@redhat.com>
6b17e9
Date:   Wed Oct 30 12:22:03 2013 +0000
6b17e9
6b17e9
    Fix --alloptions
6b17e9
    
6b17e9
    During the re-organisation of sosreport.py the code to apply all
6b17e9
    boolean options to plug-ins was factored out into its own
6b17e9
    function, _set_all_options() however this was never called from
6b17e9
    the main execute() method. Fix this to allow the option to work
6b17e9
    as previously.
6b17e9
    
6b17e9
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
6b17e9
6b17e9
diff --git a/sos/sosreport.py b/sos/sosreport.py
6b17e9
index 3fb60c7..1b13826 100644
6b17e9
--- a/sos/sosreport.py
6b17e9
+++ b/sos/sosreport.py
6b17e9
@@ -290,7 +290,7 @@ class SoSOptions(object):
6b17e9
     @property
6b17e9
     def usealloptions(self):
6b17e9
         if self._options != None:
6b17e9
-            return _options.usealloptions
6b17e9
+            return self._options.usealloptions
6b17e9
         return self._usealloptions
6b17e9
 
6b17e9
     @usealloptions.setter
6b17e9
@@ -1136,6 +1136,7 @@ class SoSReport(object):
6b17e9
             self.policy.set_commons(self.get_commons())
6b17e9
             self.print_header()
6b17e9
             self.load_plugins()
6b17e9
+            self._set_all_options()
6b17e9
             self._set_tunables()
6b17e9
             self._check_for_unknown_plugins()
6b17e9
             self._set_plugin_options()