]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Move imports to the top.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Wed, 15 Jun 2011 18:49:04 +0000 (11:49 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Wed, 15 Jun 2011 18:49:04 +0000 (11:49 -0700)
teuthology/task/ceph.py

index 2136f94485c4b107e3fa99ac6694161918677afc..c0ea86196fa5452653b635f8a4b9f8b8359ffca1 100644 (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')