Skip to content

Commit e5d2829

Browse files
committed
orasw_meta: assert that cdb from oracle_pdbs is in oracle_databases
This could be a breaking for existing inventories with elements in oracle_pdbs without coresponding elements in oracle_databases, because the joins between oracle_pdbs and oracle_databases have been removed to cleanup the code.
1 parent 414380a commit e5d2829

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
breaking_changes:
3+
- "orasw_meta: assert that cdb from oracle_pdbs is in oracle_databases (oravirt#417)"

roles/orasw_meta/tasks/assert_oracle_databases.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@
153153
- ass_pdb.state in ['absent', 'present']
154154
- ass_pdb.home is defined
155155
- db_homes_config[ass_pdb.home] is defined
156+
- oracle_databases | selectattr('oracle_db_name', 'match', ass_pdb.cdb)
157+
| list | length == 1
156158
with_items:
157159
- "{{ oracle_pdbs }}"
158160
loop_control:

0 commit comments

Comments
 (0)