diff --git a/template/steps/promotion/{% if metric_compare_promotion %}promote_with_metric_compare.py{% endif %} b/template/steps/promotion/{% if metric_compare_promotion %}promote_with_metric_compare.py{% endif %} index 7e31b9e..90fb269 100644 --- a/template/steps/promotion/{% if metric_compare_promotion %}promote_with_metric_compare.py{% endif %} +++ b/template/steps/promotion/{% if metric_compare_promotion %}promote_with_metric_compare.py{% endif %} @@ -47,7 +47,6 @@ def promote_with_metric_compare( latest_version = get_step_context().model_version current_version = ModelVersion(name=latest_version.name, version=target_env) - latest_version_number = latest_version.number current_version_number = current_version.number if current_version_number is None: