From c3d3f589899bb8fe19503e1942af121f8e0c58b4 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 10 Jun 2013 15:51:20 +0100 Subject: 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 --- sos/sosreport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit