From ef2f57b62713df20f927960956628643e3294afd Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Thu, 21 Dec 2017 12:28:29 +0100 Subject: [PATCH] Fix check plugins: zuul.projects is now a dict 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 --- playbooks/openstackclient-check-plugins/run.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/playbooks/openstackclient-check-plugins/run.yaml b/playbooks/openstackclient-check-plugins/run.yaml index b95da3a..25cd149 100644 --- a/playbooks/openstackclient-check-plugins/run.yaml +++ b/playbooks/openstackclient-check-plugins/run.yaml @@ -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: |