Skip to content

Commit

Permalink
Check for cifmw_repo_setup_component_name definition
Browse files Browse the repository at this point in the history
DLRN promote jobs in integration lines are failing
this check as cifmw_repo_setup_component_name
is not defined. Add a check for the var definition
before checking length.
  • Loading branch information
rlandy authored and openshift-merge-bot[bot] committed May 10, 2024
1 parent 9d77c69 commit 57c5d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/dlrn_report/tasks/dlrn_report_results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
--server-principal {{ cifmw_dlrn_report_dlrnapi_host_principal }} --auth-method kerberosAuth
{% endif -%}
report-result
{% if cifmw_repo_setup_component_name | length > 0%}
{% if (cifmw_repo_setup_component_name is defined) and (cifmw_repo_setup_component_name | length > 0) %}
{% if (cifmw_repo_setup_extended_hash is defined) and (cifmw_repo_setup_extended_hash | length > 0) -%}
--extended-hash {{ cifmw_repo_setup_extended_hash }}
{% endif -%}
Expand Down

0 comments on commit 57c5d52

Please sign in to comment.