diff options
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/features/marker/utils/syncdaemon/resource.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/resource.py b/xlators/features/marker/utils/syncdaemon/resource.py index 459537276..07508c73c 100644 --- a/xlators/features/marker/utils/syncdaemon/resource.py +++ b/xlators/features/marker/utils/syncdaemon/resource.py @@ -35,7 +35,9 @@ def desugar(ustr): else: return "gluster://#{str}" else: - ap = os.path.abspath(ustr) + if ustr[0] != '/': + raise RuntimeError("cannot resolve sugared url '%s'" % ustr) + ap = os.path.normpath(ustr) if ap.startswith('//'): ap = ap[1:] return "file://" + ap |