]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix NameError
authorZack Cerza <zack.cerza@inktank.com>
Thu, 7 Aug 2014 17:13:23 +0000 (11:13 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Thu, 7 Aug 2014 17:13:23 +0000 (11:13 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/run_tasks.py

index 7fdf217faddc4b0c9cbaeb453fffee3848363e94..cd2501797e7c0e761c7b8c3b50151ab33add34f8 100644 (file)
@@ -9,8 +9,8 @@ log = logging.getLogger(__name__)
 
 
 def import_task(name):
-    internal_pkg = __import__('teuthology.task', globals(), locals(),
-                         [name], 0)
+    internal_pkg = __import__('teuthology.task', globals(), locals(), [name],
+                              0)
     if hasattr(internal_pkg, name):
         return getattr(internal_pkg, name)
     else:
@@ -34,7 +34,7 @@ def run_one_task(taskname, **kwargs):
     try:
         fn = getattr(task, subtask)
     except AttributeError:
-        log.error("No subtask of %s named %s was found", mod, subtask)
+        log.error("No subtask of %s named %s was found", task, subtask)
         raise
     return fn(**kwargs)