diff --git a/tests/integration/targets/rds_instance/roles/rds_instance/tasks/test_processor.yml b/tests/integration/targets/rds_instance/roles/rds_instance/tasks/test_processor.yml index 4d328e9d286..a1440b44a30 100644 --- a/tests/integration/targets/rds_instance/roles/rds_instance/tasks/test_processor.yml +++ b/tests/integration/targets/rds_instance/roles/rds_instance/tasks/test_processor.yml @@ -102,13 +102,18 @@ apply_immediately: true register: result + # Check if processor features either are pending or already changed - assert: that: - not result.changed - - 'result.pending_modified_values.processor_features.coreCount == "{{ modified_processor_features.coreCount }}" - or result.processor_features.coreCount == "{{ modified_processor_features.coreCount }}"' - - 'result.pending_modified_values.processor_features.threadsPerCore == "{{ modified_processor_features.threadsPerCore }}" - or result.processor_features.threadsPerCore == "{{ modified_processor_features.threadsPerCore }}"' + - '(result.pending_modified_values.processor_features.coreCount is defined and + result.pending_modified_values.processor_features.coreCount == "{{ modified_processor_features.coreCount }}") or + (result.processor_features.coreCount is defined and + result.processor_features.coreCount == "{{ modified_processor_features.coreCount }}")' + - '(result.pending_modified_values.processor_features.threadsPerCore is defined and + result.pending_modified_values.processor_features.threadsPerCore == "{{ modified_processor_features.threadsPerCore }}") or + (result.processor_features.threadsPerCore is defined and + result.processor_features.threadsPerCore == "{{ modified_processor_features.threadsPerCore }}")' always: