]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix PEP-8 issues
authorZack Cerza <zack@cerza.org>
Mon, 19 May 2014 23:36:39 +0000 (18:36 -0500)
committerZack Cerza <zack.cerza@inktank.com>
Mon, 25 Aug 2014 17:14:37 +0000 (11:14 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/lock.py

index 1ffcf34c7281bb3296bef8ef9d815bce46ec94f6..0ce4e1357c56197af7ce8552d43c6b55c2936b7e 100644 (file)
@@ -44,14 +44,17 @@ def lock_many(ctx, num, machinetype, user=None, description=None):
                     if provision.create_if_vm(ctx, machine):
                         ok_machs[machine] = machines[machine]
                     else:
-                        log.error('Unable to create virtual machine: %s' % machine)
+                        log.error('Unable to create virtual machine: %s',
+                                  machine)
                         unlock_one(ctx, machine)
                 return ok_machs
             return machines
         if status == 503:
-            log.error('Insufficient nodes available to lock %d %s nodes.', num,machinetype)
+            log.error('Insufficient nodes available to lock %d %s nodes.',
+                      num, machinetype)
         else:
-            log.error('Could not lock %d %s nodes, reason: unknown.', num, machinetype)
+            log.error('Could not lock %d %s nodes, reason: unknown.',
+                      num, machinetype)
     return []