mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-12-05 09:18:53 +00:00
fix(xwiki): guard missing-extensions assert against empty plugin set
When no XWiki addons are enabled (XWIKI_PLUGINS empty), the probe-results set_fact loop runs zero times and _xwiki_probe_results stays undefined, so the selectattr in the 'all requested extensions installed' assert raised AnsibleUndefinedVariable. Default it to [] so 'nothing requested' means 'nothing missing'. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
196074cdd0
commit
dac01cfaf1
1 file changed
+1
-1
@@ -163,7 +163,7 @@
|
||||
|
||||
- name: "XWIKI | Assert all requested extensions are installed"
|
||||
vars:
|
||||
missing: "{{ _xwiki_probe_results | selectattr('status','equalto',404) | map(attribute='id') | list }}"
|
||||
missing: "{{ (_xwiki_probe_results | default([])) | selectattr('status','equalto',404) | map(attribute='id') | list }}"
|
||||
fail:
|
||||
msg: "Missing extensions: {{ missing | join(', ') }}"
|
||||
when: missing | length > 0
|
||||
|
||||
Reference in new issue
Block a user