From: Sage Weil Date: Sun, 3 Feb 2013 16:18:52 +0000 (-0800) Subject: rbd: fix .format() call with {1} syntax X-Git-Tag: v0.94.10~27^2^2~364^2~1039 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ada803db0f87b176f1737ca51313d7b1176468a4;p=ceph.git rbd: fix .format() call with {1} syntax IndexError: tuple index out of range --- diff --git a/teuthology/task/rbd.py b/teuthology/task/rbd.py index 4461c1f66b45..47e5c7935290 100644 --- a/teuthology/task/rbd.py +++ b/teuthology/task/rbd.py @@ -171,7 +171,7 @@ def dev_create(ctx, config): remote.run( args=[ 'echo', - 'KERNEL=="rbd[0-9]*", PROGRAM="{tdir}/binary/usr/local/bin/ceph-rbdnamer %n", SYMLINK+="rbd/%c{1}/%c{2}"'.format(tdir=testdir), + 'KERNEL=="rbd[0-9]*", PROGRAM="%s/binary/usr/local/bin/ceph-rbdnamer %%n", SYMLINK+="rbd/%%c{1}/%%c{2}"' % testdir, run.Raw('>'), '{tdir}/51-rbd.rules'.format(tdir=testdir), ],