mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-11-23 15:40:20 +00:00
* Handle empty template output gracefully * Add changelog fragment for empty template output fix * refactor: reduce cognitive complexity of ActionModule.run Extract compound boolean condition to a variable to reduce the cognitive complexity from 16 to the allowed maximum of 15. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * refactor: extract duplicated error handling into _fail_with_error Replace two identical error-handling blocks in ActionModule.run() with a shared _fail_with_error static method to address SonarQube code duplication finding. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * refactor: reduce code duplication in action plugin and tests Revert _fail_with_error extraction that increased duplication on new code. Consolidate duplicate integration test tasks for conditional template into a single looped task. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: aubin bikouo <abikouo@redhat.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
3 lines
231 B
YAML
3 lines
231 B
YAML
bugfixes:
|
|
- k8s_info - Handle empty template output gracefully by returning ``changed=false`` instead of failing when Jinja2 template renders to an empty string (https://github.com/ansible-collections/kubernetes.core/issues/1042).
|