diff --git a/ansible/roles_ocp_workloads/ocp4_workload_openshift_gitops/templates/openshift-gitops.yaml.j2 b/ansible/roles_ocp_workloads/ocp4_workload_openshift_gitops/templates/openshift-gitops.yaml.j2 index e2cda8368df..e4c1ecc6ca1 100644 --- a/ansible/roles_ocp_workloads/ocp4_workload_openshift_gitops/templates/openshift-gitops.yaml.j2 +++ b/ansible/roles_ocp_workloads/ocp4_workload_openshift_gitops/templates/openshift-gitops.yaml.j2 @@ -125,5 +125,5 @@ spec: {% endif %} {% if ocp4_workload_openshift_gitops_resource_health | length > 0 %} resourceHealthChecks: - {{ ocp4_workload_openshift_gitops_resource_health | indent(4) }} + {{ ocp4_workload_openshift_gitops_resource_health | regex_replace("\n(?!$)", "\n ") }} {% endif %}