Skip to content

Commit

Permalink
Fix check plugins: zuul.projects is now a dict
Browse files Browse the repository at this point in the history
zuul.projects was recently moved to a dictionary, so looping over
it needs some fixes in order to have openstackclient-check-plugins
working again.

Change-Id: I0b69a05374ad48831304e91c7f0801d351aa1a22
  • Loading branch information
tosky committed Dec 21, 2017
1 parent f811fba commit ef2f57b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions playbooks/openstackclient-check-plugins/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
- shell:
cmd: |
echo "------------------------------------------------------------"
osc_plugins/bin/pip install -e src/git.openstack.org/{{ item }}
with_items: "{{ zuul.projects | selectattr('required') | map(attribute='name') | list }}"
osc_plugins/bin/pip install -e src/{{ item.key }}
when: item.value.required
with_dict: "{{ zuul.projects }}"

- shell:
cmd: |
Expand Down

0 comments on commit ef2f57b

Please sign in to comment.