]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: fix .format() call with {1} syntax
authorSage Weil <sage@inktank.com>
Sun, 3 Feb 2013 16:18:52 +0000 (08:18 -0800)
committerSage Weil <sage@inktank.com>
Sun, 3 Feb 2013 16:18:52 +0000 (08:18 -0800)
IndexError: tuple index out of range

teuthology/task/rbd.py

index 4461c1f66b4502611b0a2e93ac3782f05677cbc1..47e5c7935290eccdbec3701967af582473397b9c 100644 (file)
@@ -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),
                 ],