diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2015-02-19 18:46:03 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-02-19 18:46:03 +0000 |
commit | d83675fb957eba39e53ba05e0c74f762151ac7a4 (patch) | |
tree | fe55e5dee9b1185d851c3b480dfe9613b1571067 | |
parent | 69cbb7f3e298b1ab8e1c0c63fbe7b06719dbf9a0 (diff) | |
download | sos-d83675fb957eba39e53ba05e0c74f762151ac7a4.tar.gz |
[sosreport] fix string construction in SoSReport.__init__()
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/sosreport.py | 5 |
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() |