]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix a couple linter errors
authorZack Cerza <zack@cerza.org>
Tue, 24 Jun 2014 15:13:30 +0000 (09:13 -0600)
committerZack Cerza <zack@cerza.org>
Wed, 25 Jun 2014 18:54:23 +0000 (12:54 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/schedule.py
teuthology/suite.py

index 3338e24a3791db46ab8dde40d3c0e8336ba567d2..18dad4921cb38329acd83e38a02deda43daf75d7 100644 (file)
@@ -1,7 +1,7 @@
 import yaml
 
 import teuthology.beanstalk
-from teuthology.misc import config_file, deep_merge, get_user
+from teuthology.misc import deep_merge, get_user
 from teuthology import report
 
 
index 88120dfe2d1857d974b394a9577b17900dd95003..a80286f6c3557ff292c11c2f6c53c6bb6b9cec3f 100644 (file)
@@ -339,13 +339,13 @@ def schedule_suite(name,
     log.info('Suite %s in %s generated %d jobs' % (
         name, path, len(configs)))
 
-    for description, config in configs:
+    for description, fragment_paths in configs:
         if limit > 0 and count >= limit:
             log.info(
                 'Stopped after {limit} jobs due to --limit={limit}'.format(
                     limit=limit))
             break
-        raw_yaml = '\n'.join([file(a, 'r').read() for a in config])
+        raw_yaml = '\n'.join([file(a, 'r').read() for a in fragment_paths])
 
         parsed_yaml = yaml.load(raw_yaml)
         os_type = parsed_yaml.get('os_type')
@@ -379,7 +379,7 @@ def schedule_suite(name,
             '--',
         ])
         arg.extend(base_yamls)
-        arg.extend(config)
+        arg.extend(fragment_paths)
 
         if dry_run:
             # Quote any individual args so that individual commands can be