From: Tommi Virtanen Date: Wed, 15 Jun 2011 18:49:04 +0000 (-0700) Subject: Move imports to the top. X-Git-Tag: 1.1.0~3027 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d157e32393f3514208b15490237de7c9f47188fe;p=teuthology.git Move imports to the top. --- diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index 2136f944..c0ea8619 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -5,6 +5,7 @@ import logging import os import gevent import tarfile +import yaml from teuthology import misc as teuthology from teuthology import safepath @@ -524,7 +525,6 @@ def task(ctx, config): with file(os.path.join(ctx.archive, 'ceph-sha1'), 'w') as f: f.write(sha1 + '\n') - import yaml with file(os.path.join(ctx.archive, 'config.yaml'), 'w') as f: config = yaml.safe_dump(ctx.config, default_flow_style=False).splitlines() f.write('\n'.join(config) + '\n')