mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
rbd: fix .format() call with {1} syntax
IndexError: tuple index out of range
This commit is contained in:
parent
fe9fb49e27
commit
ada803db0f
@ -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),
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user