aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-02-19 18:46:03 +0000
committerBryn M. Reeves <bmr@redhat.com>2015-02-19 18:46:03 +0000
commitd83675fb957eba39e53ba05e0c74f762151ac7a4 (patch)
treefe55e5dee9b1185d851c3b480dfe9613b1571067
parent69cbb7f3e298b1ab8e1c0c63fbe7b06719dbf9a0 (diff)
downloadsos-d83675fb957eba39e53ba05e0c74f762151ac7a4.tar.gz
[sosreport] fix string construction in SoSReport.__init__()
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/sosreport.py5
1 files 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()