aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-06-10 15:51:20 +0100
committerBryn M. Reeves <bmr@redhat.com>2013-06-10 15:51:20 +0100
commitc3d3f589899bb8fe19503e1942af121f8e0c58b4 (patch)
tree30befed06eb3dc393437b877e58989930cd854de
parent1681b27eda899536b39be533cb7187480103c412 (diff)
downloadsos-c3d3f589899bb8fe19503e1942af121f8e0c58b4.tar.gz
Move TempFileUtil initialisation to be after policy set up
Policies may wish to influence the choice of temporary directory. Move the TempFileUtil initialisation to be after the call to load policy. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/sosreport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py
index c86acd15..7fa76501 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -527,11 +527,11 @@ class SoSReport(object):
#self.opts = self.parse_options(args)[0]
self.opts = SoSOptions(args)
- self.tempfile_util = TempFileUtil(tmp_dir=self.opts.tmp_dir)
self._set_debug()
self._read_config()
self.policy = sos.policies.load()
self._is_root = self.policy.is_root()
+ self.tempfile_util = TempFileUtil(tmp_dir=self.opts.tmp_dir)
self._set_directories()
def print_header(self):