fix(semaphore/configure): use ['keys'] subscript not .keys attribute
Jinja interpreted semaphore_config.keys as the dict method rather than the 'keys' field, causing 'Invalid data passed to loop' failure. Bracket subscript disambiguates.
This commit is contained in:
@@ -99,7 +99,7 @@
|
|||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
status_code: [201, 204]
|
status_code: [201, 204]
|
||||||
loop: "{{ semaphore_config.keys }}"
|
loop: "{{ semaphore_config['keys'] }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
when: item.name not in (_semaphore_keys.json | map(attribute='name') | list)
|
when: item.name not in (_semaphore_keys.json | map(attribute='name') | list)
|
||||||
|
|||||||
Reference in New Issue
Block a user