Skip to content

Commit 0ae473e

Browse files
author
Super User
committed
Fix select filter syntax in test_filter_processor-25628
Changed line 55: select('search', 'Proc') to selectattr('name', 'search', 'Proc') selectattr is the correct filter for searching within attribute values.
1 parent ede8c40 commit 0ae473e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/integration/targets/idrac_bios_registry_info/tests/test_filter_processor-25628.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
- name: Verify expected Processor attributes exist
5353
ansible.builtin.assert:
5454
that:
55-
- filter_result.bios_attributes | map(attribute='name') | list | select('search', 'Proc') | list | length > 0
55+
- filter_result.bios_attributes | selectattr('name', 'search', 'Proc') | list | length > 0
5656
when: filter_result.bios_attributes | length > 0
5757

5858
- name: Verify changed flag is false (read-only operation)

0 commit comments

Comments
 (0)