]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
radosbench: fix missing format value
authorSage Weil <sage@inktank.com>
Wed, 6 Feb 2013 17:06:35 +0000 (09:06 -0800)
committerSage Weil <sage@inktank.com>
Wed, 6 Feb 2013 17:06:35 +0000 (09:06 -0800)
tdir is substituted in at the end.  There is probably a better way to do
this.

teuthology/task/radosbench.py

index 39caef5463270ab014263453eedfac0400a85394..532821d65a43232a32fd506ca1f938aee4a2377f 100644 (file)
@@ -71,7 +71,7 @@ def task(ctx, config):
                           '{tdir}/archive/coverage',
                           '{tdir}/binary/usr/local/bin/rados',
                           '-c', '{tdir}/ceph.conf',
-                          '-k', '{tdir}/data/{role}.keyring'.format(role=role),
+                          '-k', '{tdir}/data/%s.keyring' % role,
                           '--name', role,
                           '-p' , str(config.get('pool', 'data')),
                           'bench', str(config.get('time', 360)), 'write',