Skip to content

Commit 66eb667

Browse files
Adding generic check for task tag
1 parent 1bba8e7 commit 66eb667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ads/aqua/modeldeployment/deployment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def create(
221221
task_tag = aqua_model.freeform_tags.get(Tags.TASK, UNKNOWN)
222222
if (
223223
task_tag == ModelTask.TIME_SERIES_FORECASTING
224-
or task_tag.replace("-", "_") == ModelTask.TIME_SERIES_FORECASTING
224+
or task_tag == ModelTask.TIME_SERIES_FORECASTING.replace("-", "_")
225225
):
226226
create_deployment_details.env_var.update(
227227
{Tags.TASK.upper(): ModelTask.TIME_SERIES_FORECASTING}

0 commit comments

Comments
 (0)