From: Tommi Virtanen Date: Wed, 15 Jun 2011 18:50:32 +0000 (-0700) Subject: Write config.yaml directly to file. X-Git-Tag: 1.1.0~3026 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=cd8f31db0f55e6c8fdfd09820865d973ec6f676c;p=teuthology.git Write config.yaml directly to file. --- diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index c0ea86196f..544cc7f817 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -526,8 +526,7 @@ def task(ctx, config): f.write(sha1 + '\n') 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') + yaml.safe_dump(ctx.config, f, default_flow_style=False) log.info('Compressing logs...') run.wait(