From cdada263178fa79aadbe123675a6b91ac230925c Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Mon, 16 May 2016 20:26:46 -0400 Subject: [PATCH] Set default_flow_style=False for readability A cosmetic change to format the playbook as block style. Change-Id: I458cdaccfe903780282dd29577eedd4f6995fcbe Signed-off-by: Paul Belanger --- zuul/launcher/ansiblelaunchserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zuul/launcher/ansiblelaunchserver.py b/zuul/launcher/ansiblelaunchserver.py index 844b390619..d1171f938b 100644 --- a/zuul/launcher/ansiblelaunchserver.py +++ b/zuul/launcher/ansiblelaunchserver.py @@ -697,7 +697,7 @@ class NodeWorker(object): parameters, timeout)) play = dict(hosts='node', name='Job body', tasks=tasks) - playbook.write(yaml.dump([play])) + playbook.write(yaml.dump([play], default_flow_style=False)) with open(jobdir.post_playbook, 'w') as playbook: tasks = [] @@ -708,7 +708,7 @@ class NodeWorker(object): tasks.extend(self._makeFTPTask(jobdir, publisher)) play = dict(hosts='node', name='Publishers', tasks=tasks) - playbook.write(yaml.dump([play])) + playbook.write(yaml.dump([play], default_flow_style=False)) with open(jobdir.config, 'w') as config: config.write('[defaults]\n')