diff options
author | Csaba Henk <csaba@gluster.com> | 2011-04-13 01:46:07 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-13 04:43:14 -0700 |
commit | ac27e6980869d52ea90b869de01538dec28620ae (patch) | |
tree | 6e5afe0f84f5083105f65459892a5b7be8051047 /xlators/features/marker/utils/syncdaemon/syncdutils.py | |
parent | b1cad2780c34f9dd664f67565ceac3b5a5cf3bcb (diff) |
syncdaemon: ensure -/_ invariance in tunables, in all components
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2659 (gsync config-del option is not working properly)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2659
Diffstat (limited to 'xlators/features/marker/utils/syncdaemon/syncdutils.py')
-rw-r--r-- | xlators/features/marker/utils/syncdaemon/syncdutils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/syncdutils.py b/xlators/features/marker/utils/syncdaemon/syncdutils.py index 56bc515d49f..48694d238fd 100644 --- a/xlators/features/marker/utils/syncdaemon/syncdutils.py +++ b/xlators/features/marker/utils/syncdaemon/syncdutils.py @@ -15,6 +15,10 @@ def escape(s): def unescape(s): return urllib.unquote_plus(s) +def norm(s): + if s: + return s.replace('-', '_') + def update_file(path, updater, merger = lambda f: True): """update a file in a transaction-like manner""" |