]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
internal: fix log for python 2.6
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 29 Oct 2013 19:31:30 +0000 (12:31 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Wed, 30 Oct 2013 16:57:53 +0000 (09:57 -0700)
{} was introduced to format strings in 2.7

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
teuthology/task/internal.py

index fa9b22ac8eea7bb5a9fa154c9b9ce4fddc807f7f..61d8312509e4c2817c73333a8a6b7d78b97683e5 100644 (file)
@@ -312,7 +312,7 @@ def sudo(ctx, config):
     try:
         yield
     finally:
-        log.info('Restoring {}...'.format(sudoers_file))
+        log.info('Restoring {0}...'.format(sudoers_file))
         ctx.cluster.run(
             args="sudo mv -f {path}{ext} {path}".format(
                 path=sudoers_file, ext=backup_ext