From ada803db0f87b176f1737ca51313d7b1176468a4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 3 Feb 2013 08:18:52 -0800 Subject: [PATCH] rbd: fix .format() call with {1} syntax IndexError: tuple index out of range --- teuthology/task/rbd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/task/rbd.py b/teuthology/task/rbd.py index 4461c1f66b4..47e5c793529 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), ],