Skip to content

Commit

Permalink
orasw_download_patches: bugfix for empty oracle_databases or oracle_pdbs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rendanic committed Oct 6, 2024
1 parent 6c07113 commit b2032a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/download.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- "orasw_download_patches: bugfix for empty oracle_databases or oracle_pdbs (oravirt#480)"
7 changes: 5 additions & 2 deletions roles/orasw_download_patches/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@
- name: Download APEX images
ansible.builtin.include_tasks: apex.yml
when:
- (oracle_databases | selectattr('apex_state', 'defined') | list | length > 0
- ((oracle_databases | default([]) | length > 0
and oracle_databases | selectattr('apex_state', 'defined') | list | length > 0)
or
oracle_pdbs | selectattr('apex_state', 'defined') | list | length > 0
(oracle_databases | default([]) | length > 0
and oracle_pdbs | selectattr('apex_state', 'defined') | list | length > 0
)
)

- name: Login to Oracle
Expand Down

0 comments on commit b2032a8

Please sign in to comment.