Blob Blame History Raw
commit d1bedc1ef48f6abe6f582336e275468a1e3634b9
Author: Bryn M. Reeves <bmr@redhat.com>
Date:   Wed Oct 30 12:22:03 2013 +0000

    Fix --alloptions
    
    During the re-organisation of sosreport.py the code to apply all
    boolean options to plug-ins was factored out into its own
    function, _set_all_options() however this was never called from
    the main execute() method. Fix this to allow the option to work
    as previously.
    
    Signed-off-by: Bryn M. Reeves <bmr@redhat.com>

diff --git a/sos/sosreport.py b/sos/sosreport.py
index 3fb60c7..1b13826 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -290,7 +290,7 @@ class SoSOptions(object):
     @property
     def usealloptions(self):
         if self._options != None:
-            return _options.usealloptions
+            return self._options.usealloptions
         return self._usealloptions
 
     @usealloptions.setter
@@ -1136,6 +1136,7 @@ class SoSReport(object):
             self.policy.set_commons(self.get_commons())
             self.print_header()
             self.load_plugins()
+            self._set_all_options()
             self._set_tunables()
             self._check_for_unknown_plugins()
             self._set_plugin_options()