From c49f9471f11c9ecde6c3912fb628f7f741c60f58 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Tue, 14 Jun 2011 17:52:43 -0700 Subject: [PATCH] Archive teuthology config. --- teuthology/task/ceph.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index 1e731621f4971..2136f94485c4b 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -524,6 +524,11 @@ 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') + log.info('Compressing logs...') run.wait( ctx.cluster.run( -- 2.39.5