Skip to content

Commit b2032a8

Browse files
committed
orasw_download_patches: bugfix for empty oracle_databases or oracle_pdbs
1 parent 6c07113 commit b2032a8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

changelogs/fragments/download.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
bugfixes:
3+
- "orasw_download_patches: bugfix for empty oracle_databases or oracle_pdbs (oravirt#480)"

roles/orasw_download_patches/tasks/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@
3636
- name: Download APEX images
3737
ansible.builtin.include_tasks: apex.yml
3838
when:
39-
- (oracle_databases | selectattr('apex_state', 'defined') | list | length > 0
39+
- ((oracle_databases | default([]) | length > 0
40+
and oracle_databases | selectattr('apex_state', 'defined') | list | length > 0)
4041
or
41-
oracle_pdbs | selectattr('apex_state', 'defined') | list | length > 0
42+
(oracle_databases | default([]) | length > 0
43+
and oracle_pdbs | selectattr('apex_state', 'defined') | list | length > 0
44+
)
4245
)
4346

4447
- name: Login to Oracle

0 commit comments

Comments
 (0)