Move imports to the top.

This commit is contained in:
Tommi Virtanen 2011-06-15 11:49:04 -07:00
parent c49f9471f1
commit d157e32393

View File

@ -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')