Sort fields in post playbook

Change-Id: Iad821708c70bb10800c639e1d4d85fe241a1c687
changes/38/507538/3
Monty Taylor 5 years ago
parent 5b59c7aa4b
commit ac574ef386
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
  1. 7
      zuul/cmd/migrate.py

@ -689,9 +689,10 @@ class Job:
if artifacts:
ensure_task = collections.OrderedDict()
ensure_task['name'] = 'Ensure artifacts directory exists'
ensure_task['file'] = collections.OrderedDict(
path="{{ zuul.executor.work_root }}/artifacts",
state='directory')
ensure_task['file'] = collections.OrderedDict()
ensure_task['file']['path'] = \
"{{ zuul.executor.work_root }}/artifacts"
ensure_task['file']['state'] = 'directory'
ensure_task['delegate_to'] = 'localhost'
tasks.insert(0, ensure_task)
return dict(tasks=tasks, artifacts=artifacts, draft=draft)

Loading…
Cancel
Save