From d83675fb957eba39e53ba05e0c74f762151ac7a4 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Thu, 19 Feb 2015 18:46:03 +0000 Subject: [sosreport] fix string construction in SoSReport.__init__() Signed-off-by: Bryn M. Reeves --- sos/sosreport.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sos/sosreport.py b/sos/sosreport.py index f73f13ef..12267266 100644 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -659,9 +659,10 @@ class SoSReport(object): self.policy.get_tmp_dir(self.opts.tmp_dir)) if not os.path.isdir(self.tmpdir) \ or not os.access(self.tmpdir, os.W_OK): + msg = "temporary directory %s " % self.tmpdir + msg += "does not exist or is not writable\n" # write directly to stderr as logging is not initialised yet - sys.stderr.write("temporary directory %s " % self.tmpdir - "does not exist or is not writable\n") + sys.stderr.write(msg) self._exit(1) self.tempfile_util = TempFileUtil(self.tmpdir) self._set_directories() -- cgit