]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix #7369: "sed expression must be raw string" 186/head
authorZack Cerza <zack@cerza.org>
Mon, 10 Feb 2014 21:39:23 +0000 (15:39 -0600)
committerZack Cerza <zack@cerza.org>
Mon, 10 Feb 2014 21:40:44 +0000 (15:40 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/task/internal.py

index b916f11a95ba3526d28de90bcf1fef6e8b00340a..229dc800cd8ec164f5485109f48d8b0a4cb5ff57 100644 (file)
@@ -298,8 +298,8 @@ def sudo(ctx, config):
     log.info('Configuring sudo...')
     sudoers_file = '/etc/sudoers'
     backup_ext = '.orig.teuthology'
-    tty_expr = 's/^\([^#]*\) \(requiretty\)/\1 !\2/g'
-    pw_expr = 's/^\([^#]*\) !\(visiblepw\)/\1 \2/g'
+    tty_expr = r's/^\([^#]*\) \(requiretty\)/\1 !\2/g'
+    pw_expr = r's/^\([^#]*\) !\(visiblepw\)/\1 \2/g'
 
     run.wait(
         ctx.cluster.run(