mirror of
https://github.com/ceph/ceph
synced 2025-04-01 23:02:17 +00:00
Write config.yaml directly to file.
This commit is contained in:
parent
d157e32393
commit
cd8f31db0f
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user