Skip to content

Commit c0520dd

Browse files
talekRendanic
authored andcommitted
fix for re global flags expression
1 parent 8eb1436 commit c0520dd

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
bugfixes:
3+
- fix for re global flags when extracting sga/processes parameters in orahost_meta

roles/orahost_meta/tasks/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
ansible.builtin.set_fact:
4343
__orahost_oracle_database_sgas: >-
4444
{{ (__orahost_oracle_database_sgas | default([])) +
45-
(( __orahost_oracle_database_init_parameter | selectattr('name', 'match', '^(?i)sga_max_size$') ) | length > 0 )
46-
| ternary(__orahost_oracle_database_init_parameter | selectattr('name', 'match', '^(?i)sga_max_size$'),
47-
__orahost_oracle_database_init_parameter | selectattr('name', 'match', '^(?i)sga_target$')) }}
45+
(( __orahost_oracle_database_init_parameter | selectattr('name', 'match', '(?i)^sga_max_size$') ) | length > 0 )
46+
| ternary(__orahost_oracle_database_init_parameter | selectattr('name', 'match', '(?i)^sga_max_size$'),
47+
__orahost_oracle_database_init_parameter | selectattr('name', 'match', '(?i)^sga_target$')) }}
4848
loop: >-
4949
{{ ((oracle_databases | default([])) + (oracle_asm_instance | default([])))
5050
| map(attribute='init_parameters', default=[]) }}
5151
loop_control:
5252
loop_var: __orahost_oracle_database_init_parameter
53-
when: (__orahost_oracle_database_init_parameter | selectattr('name', 'match', '^(?i)(sga_target|sga_max_size)$')) | length > 0
53+
when: (__orahost_oracle_database_init_parameter | selectattr('name', 'match', '(?i)^(sga_target|sga_max_size)$')) | length > 0
5454

5555
- name: Aggregate SGAs
5656
ansible.builtin.include_tasks: aggregate_sgas.yml
@@ -66,7 +66,7 @@
6666
{{ ((oracle_databases | default([])) + (oracle_asm_instance | default([])))
6767
| map(attribute='init_parameters', default=[])
6868
| flatten
69-
| selectattr('name', 'match', '^(?i)processes$') }}
69+
| selectattr('name', 'match', '(?i)^processes$') }}
7070
loop_control:
7171
loop_var: __orahost_oracle_database_processes
7272
label: "{{ __orahost_oracle_database_processes.name + ': ' + __orahost_oracle_database_processes.value | string }}"

0 commit comments

Comments
 (0)