mirror of
https://github.com/ceph/ceph
synced 2025-02-21 09:57:26 +00:00
Move imports to the top.
This commit is contained in:
parent
c49f9471f1
commit
d157e32393
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user