rbd: fix .format() call with {1} syntax

IndexError: tuple index out of range
This commit is contained in:
Sage Weil 2013-02-03 08:18:52 -08:00
parent fe9fb49e27
commit ada803db0f

View 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),
],