From d157e32393f3514208b15490237de7c9f47188fe Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Wed, 15 Jun 2011 11:49:04 -0700 Subject: [PATCH] Move imports to the top. --- teuthology/task/ceph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index 2136f94485c4b..c0ea86196fa54 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') -- 2.39.5