aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-09-12 18:31:01 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-09-12 18:31:01 +0100
commit589a125b13918e1379d56ecc9ab8b8f6eb158729 (patch)
treea87a8689a1a81d3e5a2815abe7e0e82466a01139
parentebe33bbfd234d1fc589538e5c2855d5357d5fcd7 (diff)
downloadsos-589a125b13918e1379d56ecc9ab8b8f6eb158729.tar.gz
[plugin] fix whitespace in Plugin._copy_symlink()
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/__init__.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index be2827ab..e7209020 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -244,12 +244,11 @@ class Plugin(object):
absdest = os.path.normpath(dest)
# adjust the target used inside the report to always be relative
if os.path.isabs(linkdest):
- reldest = os.path.relpath(linkdest,
- os.path.dirname(srcpath))
- self._log_debug("made link target '%s' relative as '%s'"
- % (linkdest, reldest))
+ reldest = os.path.relpath(linkdest, os.path.dirname(srcpath))
+ self._log_debug("made link target '%s' relative as '%s'"
+ % (linkdest, reldest))
else:
- reldest = linkdest
+ reldest = linkdest
self._log_debug("copying link '%s' pointing to '%s' with isdir=%s"
% (srcpath, linkdest, os.path.isdir(absdest)))