Convert back to zuul.projects

Zuul has transitioned zuul.projects to a dict that mirrors
zuul._projects.  Convert users back to zuul.projects so we can remove
the underscore version in zuul.

Change-Id: I1408a15d4da274f3fc911f03d5572f4818bc4ebb
Depends-On: I3c011f72933e98ccbf8badf0e9197c8659766c51
This commit is contained in:
Ian Wienand 2017-12-01 15:02:20 +11:00
parent fda87ae875
commit 80f5a7eeb4
2 changed files with 5 additions and 5 deletions

View File

@ -4,13 +4,13 @@
value: ignore
scope: local
repo: "{{ ansible_user_dir }}/{{ item.value.src_dir}}"
with_dict: "{{ zuul._projects }}"
with_dict: "{{ zuul.projects }}"
- name: Synchronize src repos to workspace directory
command: "git push --mirror git+ssh://{{ ansible_user }}@{{ ansible_host }}/{{ ansible_user_dir }}/{{ item.value.src_dir}}"
args:
chdir: "{{ zuul.executor.work_root }}/{{ item.value.src_dir }}"
with_dict: "{{ zuul._projects }}"
with_dict: "{{ zuul.projects }}"
delegate_to: localhost
# ANSIBLE0006: Skip linting since it triggers on the "git" command,
# but push is not supported by ansible git module.
@ -22,7 +22,7 @@
shell: "echo '{{ item.key }}:' $(git status | head -1 |awk '{ print $NF }')"
args:
chdir: "{{ zuul.executor.work_root }}/{{ item.value.src_dir }}"
with_dict: "{{ zuul._projects }}"
with_dict: "{{ zuul.projects }}"
delegate_to: localhost
register: project_heads_yaml
# ANSIBLE0006: Skip linting since it triggers on the "git" command,
@ -46,7 +46,7 @@
git checkout {{ project_heads[item.key] }}
args:
chdir: "{{ ansible_user_dir }}/{{ item.value.src_dir }}"
with_dict: "{{ zuul._projects }}"
with_dict: "{{ zuul.projects }}"
# ANSIBLE0006: Skip linting since it triggers on the "git" command,
# but we prefer the shell above
tags:

View File

@ -10,4 +10,4 @@
tox_envlist: "{{ tox_envlist }}"
tox_constraints_file: "{{ tox_constraints_file | default(omit) }}"
project_dir: "{{ zuul_work_dir }}"
projects: "{{ zuul._projects.values() | selectattr('required') | list }}"
projects: "{{ zuul.projects.values() | selectattr('required') | list }}"