Skip to content

Commit a40df5f

Browse files
committed
Fix mapping flavors to a single project
Fixes an issue where the flavor mapping loop failed when only a single project was passed in.
1 parent bbede56 commit a40df5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/os_flavors/tasks/flavors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
name: "{{ item.0.name }}"
2828
state: "{{ item.0.state | default('present') }}"
2929
project: "{{ item.1 | default(omit) }}"
30-
loop: "{{ lookup('subelements', os_flavors, 'project', {'skip_missing': True}) }}"
30+
loop: "{{ lookup('subelements', os_flavors, 'project', {'skip_missing': True}, wantlist=True) }}"
3131
when: not item.0.is_public | bool

0 commit comments

Comments
 (0)